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.
Methods
impl<'a> ANSIString<'a>
fn new(contents: &'a str, style: Style) -> ANSIString<'a>
Creates a new ANSI String with the given contents and style.