pub struct ANSI {
pub prefix: &'static str,
pub suffix: &'static str,
}Expand description
ANSI terminal escape pair for colored output.
Used with the [log_color!] macro.
Each constant combines a SGR prefix (e.g. \x1b[31m for red foreground)
and a reset suffix (\x1b[0m).
Fields§
§prefix: &'static str§suffix: &'static strAuto Trait Implementations§
impl Freeze for ANSI
impl RefUnwindSafe for ANSI
impl Send for ANSI
impl Sync for ANSI
impl Unpin for ANSI
impl UnsafeUnpin for ANSI
impl UnwindSafe for ANSI
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