Trait irc::proto::colors::FormattedStringExt[][src]

pub trait FormattedStringExt<'a> {
    fn is_formatted(&self) -> bool;
fn strip_formatting(self) -> Cow<'a, str>; }

An extension trait giving strings a function to strip IRC colors

Required Methods

Returns true if the string contains color, bold, underline or italics

Returns the string with all color, bold, underline and italics stripped

Implementations on Foreign Types

impl<'a> FormattedStringExt<'a> for &'a str
[src]

impl FormattedStringExt<'static> for String
[src]

Implementors