Struct console::Style [] [src]

pub struct Style { /* fields omitted */ }

A stored style that can be applied.

Methods

impl Style
[src]

Returns an empty default style.

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.

Apply the style to something that can be displayed.

Forces styling on or off.

This overrides the detection from clicolors-control.

Sets a foreground color.

Sets a background color.

Adds a attr.

Trait Implementations

impl Clone for Style
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Style
[src]

Formats the value using the given formatter.

impl PartialEq for Style
[src]

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

This method tests for !=.

impl Eq for Style
[src]

impl Default for Style
[src]

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