Trait std::ascii::AsciiStr
pub trait AsciiStr { fn as_str_ascii<'a>(&'a self) -> &'a str; fn to_lower(&self) -> ~[Ascii]; fn to_upper(&self) -> ~[Ascii]; fn eq_ignore_case(self, other: &[Ascii]) -> bool; }
Trait for converting an ascii type to a string. Needed to convert
&[Ascii]
to &str
.
Required Methods
fn as_str_ascii<'a>(&'a self) -> &'a str
Convert to a string.
fn to_lower(&self) -> ~[Ascii]
Convert to vector representing a lower cased ascii string.
fn to_upper(&self) -> ~[Ascii]
Convert to vector representing a upper cased ascii string.
fn eq_ignore_case(self, other: &[Ascii]) -> bool
Compares two Ascii strings ignoring case.