Struct stdcli::term::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]
fn force_styling(self, value: bool) -> StyledObject<D>
[src]
Forces styling on or off.
This overrides the detection from clicolors-control
.
fn fg(self, color: Color) -> StyledObject<D>
[src]
Sets a foreground color.
fn bg(self, color: Color) -> StyledObject<D>
[src]
Sets a background color.
fn attr(self, attr: Attribute) -> StyledObject<D>
[src]
Adds a attr.
fn black(self) -> StyledObject<D>
[src]
fn red(self) -> StyledObject<D>
[src]
fn green(self) -> StyledObject<D>
[src]
fn yellow(self) -> StyledObject<D>
[src]
fn blue(self) -> StyledObject<D>
[src]
fn magenta(self) -> StyledObject<D>
[src]
fn cyan(self) -> StyledObject<D>
[src]
fn white(self) -> StyledObject<D>
[src]
fn on_black(self) -> StyledObject<D>
[src]
fn on_red(self) -> StyledObject<D>
[src]
fn on_green(self) -> StyledObject<D>
[src]
fn on_yellow(self) -> StyledObject<D>
[src]
fn on_blue(self) -> StyledObject<D>
[src]
fn on_magenta(self) -> StyledObject<D>
[src]
fn on_cyan(self) -> StyledObject<D>
[src]
fn on_white(self) -> StyledObject<D>
[src]
fn bold(self) -> StyledObject<D>
[src]
fn dim(self) -> StyledObject<D>
[src]
fn italic(self) -> StyledObject<D>
[src]
fn underlined(self) -> StyledObject<D>
[src]
fn blink(self) -> StyledObject<D>
[src]
fn reverse(self) -> StyledObject<D>
[src]
[src]
Trait Implementations
impl<D> UpperExp for StyledObject<D> where
D: UpperExp,
[src]
D: UpperExp,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<D> UpperHex for StyledObject<D> where
D: UpperHex,
[src]
D: UpperHex,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<D> Clone for StyledObject<D> where
D: Clone,
[src]
D: Clone,
fn clone(&self) -> StyledObject<D>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<D> Octal for StyledObject<D> where
D: Octal,
[src]
D: Octal,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<D> Debug for StyledObject<D> where
D: Debug,
[src]
D: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<D> Pointer for StyledObject<D> where
D: Pointer,
[src]
D: Pointer,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<D> Binary for StyledObject<D> where
D: Binary,
[src]
D: Binary,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<D> LowerHex for StyledObject<D> where
D: LowerHex,
[src]
D: LowerHex,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<D> Display for StyledObject<D> where
D: Display,
[src]
D: Display,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<D> LowerExp for StyledObject<D> where
D: LowerExp,
[src]
D: LowerExp,