pub struct AnsiDecoder { /* private fields */ }Expand description
Translates ANSI codes into styled Text. Mirrors rich.ansi.AnsiDecoder.
The decoder is stateful: a style set on one line persists to the next, just like a real terminal (and like upstream).
Implementations§
Trait Implementations§
Source§impl Default for AnsiDecoder
impl Default for AnsiDecoder
Source§fn default() -> AnsiDecoder
fn default() -> AnsiDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnsiDecoder
impl RefUnwindSafe for AnsiDecoder
impl Send for AnsiDecoder
impl Sync for AnsiDecoder
impl Unpin for AnsiDecoder
impl UnsafeUnpin for AnsiDecoder
impl UnwindSafe for AnsiDecoder
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