[][src]Trait irc_proto::colors::FormattedStringExt

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

An extension trait giving strings a function to strip IRC colors

Required methods

pub fn is_formatted(&self) -> bool[src]

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

pub fn strip_formatting(self) -> Cow<'a, str>[src]

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

Loading content...

Implementations on Foreign Types

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

impl FormattedStringExt<'static> for String[src]

Loading content...

Implementors

Loading content...