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§
Sourcefn termion(&self) -> TermionStr<'_>
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());