pub trait Str { fn as_slice<'a>(&'a self) -> &'a str; fn into_owned(self) -> ~str; }
Any string that can be represented as a slice
fn as_slice<'a>(&'a self) -> &'a str
Work with self
as a slice.
fn into_owned(self) -> ~str
Convert self
into a ~str, not making a copy if possible
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
).