Trait std::ascii::AsciiStr[src]
pub trait AsciiStr {
fn as_str_ascii<'a>(&'a self) -> &'a str;
fn to_lower(&self) -> Vec<Ascii>;
fn to_upper(&self) -> Vec<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) -> Vec<Ascii>
Convert to vector representing a lower cased ascii string.
fn to_upper(&self) -> Vec<Ascii>
Convert to vector representing a upper cased ascii string.
fn eq_ignore_case(self, other: &[Ascii]) -> bool
Compares two Ascii strings ignoring case.