pub struct Styled { /* private fields */ }Expand description
A thin helper that conditionally applies ANSI escape codes.
Create with Styled::auto() to respect environment / TTY, or
force a mode with Styled::plain() / Styled::colored().
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Styled
impl RefUnwindSafe for Styled
impl Send for Styled
impl Sync for Styled
impl Unpin for Styled
impl UnsafeUnpin for Styled
impl UnwindSafe for Styled
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