pub trait Colored {
// Required method
fn colored(self) -> ColoredString;
}Expand description
The trait that enables a string to be colorized
Required Methods§
Sourcefn colored(self) -> ColoredString
fn colored(self) -> ColoredString
Creates a new ColoredString by parsing given text.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".