Trait std::ascii::AsciiStr

pub trait AsciiStr {
    fn to_str_ascii(&self) -> ~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 to_str_ascii(&self) -> ~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

Implementors