Struct console::Style [] [src]

pub struct Style { /* fields omitted */ }

A stored style that can be applied.

Methods

impl Style
[src]

[src]

Returns an empty default style.

[src]

Creates a style 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.

[src]

Apply the style to something that can be displayed.

[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 Clone for Style
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Style
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Style
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Style
[src]

impl Default for Style
[src]

[src]

Returns the "default value" for a type. Read more