Termion

Trait Termion 

Source
pub trait Termion {
    // Required method
    fn termion(&self) -> TermionStr<'_>;
}
Expand description

Extension trait for producing formatted strings with termion.

§Example

use text_style::termion::Termion;

println!("{}", text_style::StyledStr::plain("test").bold().termion());

Required Methods§

Source

fn termion(&self) -> TermionStr<'_>

Convert this string into a TermionStr that can be formatted with termion.

§Example
use text_style::termion::Termion;

println!("{}", text_style::StyledStr::plain("test").bold().termion());

Implementors§