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

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

fn is_formatted(&self) -> bool

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

fn strip_formatting(self) -> Cow<'a, str>

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...