Struct fern::colors::WithFgColor [] [src]

pub struct WithFgColor<T> where
    T: Display
{ /* fields omitted */ }

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

impl<T> Display for WithFgColor<T> where
    T: Display
[src]

[src]

Formats the value using the given formatter. Read more