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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.