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> Clone for ANSIString<'a>
[src]

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

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl<'a> Debug for ANSIString<'a>
[src]

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

Formats the value using the given formatter.

impl<'a> PartialEq for ANSIString<'a>
[src]

fn eq(&self, __arg_0: &ANSIString<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ANSIString<'a>) -> bool

This method tests for !=.

impl<'a> Display for ANSIString<'a>
[src]

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

Formats the value using the given formatter.

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

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

Performs the conversion.