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
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
Implementations on Foreign Types
impl<'a> FormattedStringExt<'a> for &'a str
[src]
impl<'a> FormattedStringExt<'a> for &'a str
fn is_formatted(&self) -> bool
[src]
fn is_formatted(&self) -> bool
fn strip_formatting(self) -> Cow<'a, str>
[src]
fn strip_formatting(self) -> Cow<'a, str>
impl FormattedStringExt<'static> for String
[src]
impl FormattedStringExt<'static> for String
fn is_formatted(&self) -> bool
[src]
fn is_formatted(&self) -> bool
fn strip_formatting(self) -> Cow<'static, str>
[src]
fn strip_formatting(self) -> Cow<'static, str>