pub struct Paint<T>(pub Style, pub T);Expand description
Wraps a Display value with a style; emits ANSI codes only when
color_enabled is true.
Tuple Fields§
§0: Style§1: TTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Paint<T>where
T: Freeze,
impl<T> RefUnwindSafe for Paint<T>where
T: RefUnwindSafe,
impl<T> Send for Paint<T>where
T: Send,
impl<T> Sync for Paint<T>where
T: Sync,
impl<T> Unpin for Paint<T>where
T: Unpin,
impl<T> UnsafeUnpin for Paint<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Paint<T>where
T: UnwindSafe,
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