Struct term_painter::Painted
source · pub struct Painted<T> { /* private fields */ }
Expand description
Wraps an object of type T
and a style. When attempting to print it, the
given style is applied before printing and reset afterwards.
All formatting traits (Display
, Debug
, …) that are implemented
for T
are also implemented the wrapper type Painted<T>
.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Painted<T>where
T: RefUnwindSafe,
impl<T> Send for Painted<T>where
T: Send,
impl<T> Sync for Painted<T>where
T: Sync,
impl<T> Unpin for Painted<T>where
T: Unpin,
impl<T> UnwindSafe for Painted<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