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
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<'_>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".