Struct console::StyledObject [] [src]

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

A formatting wrapper that can be styled for a terminal.

Methods

impl<D> StyledObject<D>
[src]

[src]

Forces styling on or off.

This overrides the detection from clicolors-control.

[src]

Sets a foreground color.

[src]

Sets a background color.

[src]

Adds a attr.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.

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

[src]

Formats the value using the given formatter.

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Formats the value using the given formatter.

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

[src]

Formats the value using the given formatter.

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

[src]

Formats the value using the given formatter.

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

[src]

Formats the value using the given formatter.

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

[src]

Formats the value using the given formatter.

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

[src]

Formats the value using the given formatter.