Struct console::Style [−][src]
pub struct Style { /* fields omitted */ }
Expand description
A stored style that can be applied.
Implementations
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. 9.on_12
is
the same, but using 256 color numbers. 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
.
Specifies that style is applying to something being written on stderr.
Specifies that style is applying to something being written on stdout.
This is the default behaviour.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Style
impl UnwindSafe for Style
Blanket Implementations
Mutably borrows from an owned value. Read more