Trait std::str::Str
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
Required Methods
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
Implementors
MaybeOwned<'a>
impl<'a> Str for &'a str
impl<'a> Str for ~str