Trait TextExt
Source pub trait TextExt {
// Required methods
fn bold(&self) -> Text<'_>;
fn italic(&self) -> Text<'_>;
fn strike(&self) -> Text<'_>;
fn monospace(&self) -> Text<'_>;
fn secret(&self) -> Text<'_>;
fn red(&self) -> Text<'_>;
fn green(&self) -> Text<'_>;
fn blue(&self) -> Text<'_>;
fn yellow(&self) -> Text<'_>;
fn cyan(&self) -> Text<'_>;
fn magenta(&self) -> Text<'_>;
}
Expand description
An extension trait supposed to construct Text types from string like types, e.g.
ⓘformat!("Hello, {}", user_name.bold())