Struct log4rs::encode::Style [] [src]

pub struct Style {
    pub text: Option<Color>,
    pub background: Option<Color>,
    pub intense: Option<bool>,
    // some fields omitted
}

The style applied to text output.

Any fields set to None will be set to their default format, as defined by the Writer.

Fields

text

The text (or foreground) color.

background

The background color.

intense

True if the text should have increased intensity.

Methods

impl Style
[src]

fn new() -> Style

Returns a Style with all fields set to their defaults.

fn text(&mut self, text: Color) -> &mut Style

Sets the text color.

fn background(&mut self, background: Color) -> &mut Style

Sets the background color.

fn intense(&mut self, intense: bool) -> &mut Style

Sets the text intensity.

Trait Implementations

impl Debug for Style
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Default for Style
[src]

fn default() -> Style

impl Clone for Style
[src]

fn clone(&self) -> Style

fn clone_from(&mut self, source: &Self)
1.0.0