Add Clone to Output
So `.cloned()` can be called on iterator.
This commit is contained in:
@@ -179,7 +179,7 @@ impl Display for AnsiSequence {
|
|||||||
///This is what is outputted by the parsing iterator.
|
///This is what is outputted by the parsing iterator.
|
||||||
///Each block contains either straight-up text, or simply
|
///Each block contains either straight-up text, or simply
|
||||||
///an ANSI escape sequence.
|
///an ANSI escape sequence.
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub enum Output<'a> {
|
pub enum Output<'a> {
|
||||||
TextBlock(&'a str),
|
TextBlock(&'a str),
|
||||||
Escape(AnsiSequence)
|
Escape(AnsiSequence)
|
||||||
|
Reference in New Issue
Block a user