pub struct Ink {
pub colour: bool,
pub bold: &'static str,
pub dim: &'static str,
pub reset: &'static str,
pub cyan: &'static str,
pub green: &'static str,
pub yellow: &'static str,
pub red: &'static str,
}Expand description
ANSI styles — cmduse’s palette, or empty strings when colour is off, so a piped run never leaks SGR escapes.
Fields§
§colour: bool§bold: &'static str§dim: &'static str§reset: &'static str§cyan: &'static str§green: &'static str§yellow: &'static str§red: &'static strImplementations§
Auto Trait Implementations§
impl Freeze for Ink
impl RefUnwindSafe for Ink
impl Send for Ink
impl Sync for Ink
impl Unpin for Ink
impl UnsafeUnpin for Ink
impl UnwindSafe for Ink
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