StyleAttributes

Trait StyleAttributes 

Source
pub trait StyleAttributes {
Show 22 methods // Provided methods fn set_attr<T>(attr: &str, v: T) -> TerminalAttribute<T> where T: Display { ... } fn red(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn red_bold(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn green(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn green_bold(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn blue(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn blue_bold(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn yellow(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn yellow_bold(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn grey(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn grey_bold(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn underline(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn bg_red(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn bg_yellow(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn bg_green(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn bg_cyan(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn bg_grey(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn bg_red_bold(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn bg_yellow_bold(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn bg_green_bold(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn bg_cyan_bold(&self) -> TerminalAttribute<&Self> where Self: Display { ... } fn bg_grey_bold(&self) -> TerminalAttribute<&Self> where Self: Display { ... }
}
Expand description

different terminal attributes

Provided Methods§

Source

fn set_attr<T>(attr: &str, v: T) -> TerminalAttribute<T>
where T: Display,

Source

fn red(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn red_bold(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn green(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn green_bold(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn blue(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn blue_bold(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn yellow(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn yellow_bold(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn grey(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn grey_bold(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn underline(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn bg_red(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn bg_yellow(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn bg_green(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn bg_cyan(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn bg_grey(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn bg_red_bold(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn bg_yellow_bold(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn bg_green_bold(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn bg_cyan_bold(&self) -> TerminalAttribute<&Self>
where Self: Display,

Source

fn bg_grey_bold(&self) -> TerminalAttribute<&Self>
where Self: Display,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§