StyledText

Trait StyledText 

Source
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§

Source

fn header(&self) -> ColoredString

Style as a header/label (purple/magenta bold)

Source

fn path(&self) -> ColoredString

Style as a path/identifier (cyan)

Source

fn hash(&self) -> ColoredString

Style as a hash/ID (cyan)

Source

fn count(&self) -> ColoredString

Style as a count/number (yellow/orange)

Source

fn success(&self) -> ColoredString

Style as success value (green)

Source

fn separator(&self) -> ColoredString

Style as a separator (dim gray)

Source

fn err(&self) -> ColoredString

Style as an error (red)

Source

fn warning(&self) -> ColoredString

Style as a warning (yellow)

Source

fn brand(&self) -> ColoredString

Style as branding (cyan bold)

Implementations on Foreign Types§

Source§

impl StyledText for str

Source§

impl StyledText for String

Implementors§