Struct ansi_term::ANSIString [] [src]

pub struct ANSIString<'a> {
    // some fields omitted
}

An ANSI String is a string coupled with the Style to display it in a terminal.

Although not technically a string itself, it can be turned into one with the to_string method.

Trait Implementations

impl<'a> Display for ANSIString<'a>

fn fmt(&self, f: &mut Formatter) -> Result

impl<'a, S> From<S> for ANSIString<'a> where S: Into<Cow<'a, str>>

fn from(input: S) -> ANSIString<'a>

Derived Implementations

impl<'a> Clone for ANSIString<'a>

fn clone(&self) -> ANSIString<'a>

fn clone_from(&mut self, source: &Self)