Expand description
An escape sequence for the terminal.
Variants
SetGraphicsMode(Vec<u8>)
Change the foreground, background, and attributes of terminal text using the given values.
Examples
let s = EscapeSequence::SetGraphicsMode(vec![OP_BOLD, FG_BLACK, BG_WHITE]).to_string();
assert_eq!(s, "\x1b[1;30;47m");
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EscapeSequence
impl Send for EscapeSequence
impl Sync for EscapeSequence
impl Unpin for EscapeSequence
impl UnwindSafe for EscapeSequence
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more