Struct indicatif::StyledObject
[−]
[src]
pub struct StyledObject<D> { /* fields omitted */ }
A formatting wrapper that can be styled for a terminal.
Methods
impl<D> StyledObject<D>
[src]
pub fn force_styling(self, value: bool) -> StyledObject<D>
[src]
Forces styling on or off.
This overrides the detection from clicolors-control
.
pub fn fg(self, color: Color) -> StyledObject<D>
[src]
Sets a foreground color.
pub fn bg(self, color: Color) -> StyledObject<D>
[src]
Sets a background color.
pub fn attr(self, attr: Attribute) -> StyledObject<D>
[src]
Adds a attr.
pub fn black(self) -> StyledObject<D>
[src]
pub fn red(self) -> StyledObject<D>
[src]
pub fn green(self) -> StyledObject<D>
[src]
pub fn yellow(self) -> StyledObject<D>
[src]
pub fn blue(self) -> StyledObject<D>
[src]
pub fn magenta(self) -> StyledObject<D>
[src]
pub fn cyan(self) -> StyledObject<D>
[src]
pub fn white(self) -> StyledObject<D>
[src]
pub fn on_black(self) -> StyledObject<D>
[src]
pub fn on_red(self) -> StyledObject<D>
[src]
pub fn on_green(self) -> StyledObject<D>
[src]
pub fn on_yellow(self) -> StyledObject<D>
[src]
pub fn on_blue(self) -> StyledObject<D>
[src]
pub fn on_magenta(self) -> StyledObject<D>
[src]
pub fn on_cyan(self) -> StyledObject<D>
[src]
pub fn on_white(self) -> StyledObject<D>
[src]
pub fn bold(self) -> StyledObject<D>
[src]
pub fn dim(self) -> StyledObject<D>
[src]
pub fn underlined(self) -> StyledObject<D>
[src]
pub fn blink(self) -> StyledObject<D>
[src]
pub fn reverse(self) -> StyledObject<D>
[src]
[src]
Trait Implementations
impl<D: Clone> Clone for StyledObject<D>
[src]
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: Binary> Binary for StyledObject<D>
[src]
impl<D: Debug> Debug for StyledObject<D>
[src]
impl<D: Display> Display for StyledObject<D>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more