pub trait StyledText {
// Required methods
fn header(&self) -> ColoredString;
fn path(&self) -> ColoredString;
fn hash(&self) -> ColoredString;
fn count(&self) -> ColoredString;
fn success(&self) -> ColoredString;
fn separator(&self) -> ColoredString;
fn err(&self) -> ColoredString;
fn warning(&self) -> ColoredString;
fn brand(&self) -> ColoredString;
}Expand description
Text styling helpers
Required Methods§
Sourcefn header(&self) -> ColoredString
fn header(&self) -> ColoredString
Style as a header/label (purple/magenta bold)
Sourcefn path(&self) -> ColoredString
fn path(&self) -> ColoredString
Style as a path/identifier (cyan)
Sourcefn hash(&self) -> ColoredString
fn hash(&self) -> ColoredString
Style as a hash/ID (cyan)
Sourcefn count(&self) -> ColoredString
fn count(&self) -> ColoredString
Style as a count/number (yellow/orange)
Sourcefn success(&self) -> ColoredString
fn success(&self) -> ColoredString
Style as success value (green)
Sourcefn separator(&self) -> ColoredString
fn separator(&self) -> ColoredString
Style as a separator (dim gray)
Sourcefn err(&self) -> ColoredString
fn err(&self) -> ColoredString
Style as an error (red)
Sourcefn warning(&self) -> ColoredString
fn warning(&self) -> ColoredString
Style as a warning (yellow)
Sourcefn brand(&self) -> ColoredString
fn brand(&self) -> ColoredString
Style as branding (cyan bold)