Struct ansi_builder::style::Style [−][src]
pub struct Style(pub AnsiBuilder);
Expand description
Style struct takes in the AnsiBuilder and set the correct escape sequence to fit the wanted style that is asked for in future text.
Example
use ansi_builder::AnsiBuilder; // "Hello" will be bold in the terminal. AnsiBuilder::new() .style().bold() .text("Hello") .println();
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Style
impl UnwindSafe for Style