[−][src]Trait crossterm::Styler
Provides a set of methods to style any type implementing Display
with attributes.
This trait is implemented for &static str
and StyledObject
and thus the methods of this trait could be called on them.
Example
use Colorizer; println!("{}", "Bold text".bold(); println!("{}", "Underlined text".underlined(); println!("{}", "Negative text".negative();
Required methods
fn reset(self) -> StyledObject<D>
fn bold(self) -> StyledObject<D>
fn underlined(self) -> StyledObject<D>
fn reverse(self) -> StyledObject<D>
fn dim(self) -> StyledObject<D>
fn italic(self) -> StyledObject<D>
fn negative(self) -> StyledObject<D>
fn slow_blink(self) -> StyledObject<D>
fn rapid_blink(self) -> StyledObject<D>
fn crossed_out(self) -> StyledObject<D>
Implementations on Foreign Types
impl Styler<&'static str> for &'static str
[src]
fn reset(self) -> StyledObject<&'static str>
[src]
fn bold(self) -> StyledObject<&'static str>
[src]
fn underlined(self) -> StyledObject<&'static str>
[src]
fn reverse(self) -> StyledObject<&'static str>
[src]
fn dim(self) -> StyledObject<&'static str>
[src]
fn italic(self) -> StyledObject<&'static str>
[src]
fn negative(self) -> StyledObject<&'static str>
[src]
fn slow_blink(self) -> StyledObject<&'static str>
[src]
fn rapid_blink(self) -> StyledObject<&'static str>
[src]
[src]
fn crossed_out(self) -> StyledObject<&'static str>
[src]
Implementors
impl<D> Styler<D> for StyledObject<D> where
D: Display,
[src]
D: Display,