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
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
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).