pub enum AnsiCommand {
CursorMove {
row: u16,
col: u16,
},
ClearScreen(ClearMode),
ClearLine(ClearMode),
SetAttribute(Vec<u8>),
EnterAlternateScreen,
LeaveAlternateScreen,
HideCursor,
ShowCursor,
EnableMouse,
DisableMouse,
Text(String),
Unknown(Vec<u8>),
}Expand description
Parsed ANSI command for testing assertions.
Variants§
CursorMove
Cursor movement: CUP (H), CUU (A), CUD (B), CUF (C), CUB (D)
ClearScreen(ClearMode)
Clear screen (ED)
ClearLine(ClearMode)
Clear line (EL)
SetAttribute(Vec<u8>)
Set graphics rendition (SGR)
EnterAlternateScreen
Enter alternate screen
LeaveAlternateScreen
Leave alternate screen
HideCursor
Hide cursor
ShowCursor
Show cursor
EnableMouse
Enable mouse capture
DisableMouse
Disable mouse capture
Text(String)
Plain text (non-escape content)
Unknown(Vec<u8>)
Unknown or unparsed escape sequence
Trait Implementations§
Source§impl Clone for AnsiCommand
impl Clone for AnsiCommand
Source§fn clone(&self) -> AnsiCommand
fn clone(&self) -> AnsiCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnsiCommand
impl Debug for AnsiCommand
impl Eq for AnsiCommand
Source§impl PartialEq for AnsiCommand
impl PartialEq for AnsiCommand
Source§fn eq(&self, other: &AnsiCommand) -> bool
fn eq(&self, other: &AnsiCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnsiCommand
Auto Trait Implementations§
impl Freeze for AnsiCommand
impl RefUnwindSafe for AnsiCommand
impl Send for AnsiCommand
impl Sync for AnsiCommand
impl Unpin for AnsiCommand
impl UnsafeUnpin for AnsiCommand
impl UnwindSafe for AnsiCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more