Struct fern::colors::WithFgColor
source · pub struct WithFgColor<T>where
T: Display,{ /* private fields */ }
Expand description
Opaque structure which represents some text data and a color to display it with.
This implements fmt::Display
to displaying the inner text (usually a
log level) with ANSI color markers before to set the color and after to
reset the color.
WithFgColor
instances can be created and displayed without any allocation.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for WithFgColor<T>where T: RefUnwindSafe,
impl<T> Send for WithFgColor<T>where T: Send,
impl<T> Sync for WithFgColor<T>where T: Sync,
impl<T> Unpin for WithFgColor<T>where T: Unpin,
impl<T> UnwindSafe for WithFgColor<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