Struct indicatif::Styled [] [src]

pub struct Styled<D> { /* fields omitted */ }

A formatting wrapper that can be styled for a terminal.

Methods

impl<D> Styled<D>
[src]

Forces styling on or off.

This overrides the detection from clicolors-control.

Sets a foreground color.

Sets a background color.

Adds a style.

Applies styles from a dotted string.

Effectively the string is split at each dot and then the terms in between are applied. For instance red.on_blue will create a string that is red on blue background. Unknown terms are ignored.

Trait Implementations

impl<D: Clone> Clone for Styled<D>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<D: Binary> Binary for Styled<D>
[src]

Formats the value using the given formatter.

impl<D: Debug> Debug for Styled<D>
[src]

Formats the value using the given formatter.

impl<D: Display> Display for Styled<D>
[src]

Formats the value using the given formatter. Read more

impl<D: LowerExp> LowerExp for Styled<D>
[src]

Formats the value using the given formatter.

impl<D: LowerHex> LowerHex for Styled<D>
[src]

Formats the value using the given formatter.

impl<D: Octal> Octal for Styled<D>
[src]

Formats the value using the given formatter.

impl<D: Pointer> Pointer for Styled<D>
[src]

Formats the value using the given formatter.

impl<D: UpperExp> UpperExp for Styled<D>
[src]

Formats the value using the given formatter.

impl<D: UpperHex> UpperHex for Styled<D>
[src]

Formats the value using the given formatter.