Primitive Type str
String manipulation
For more details, see std::str
Trait Implementations
impl<'a> Clone for &'a str
fn clone(&self) -> &'a str
Return a shallow copy of the slice.
String manipulation
For more details, see std::str
impl<'a> Clone for &'a strfn clone(&self) -> &'a strReturn a shallow copy of the slice.
fn clone_from(&mut self, source: &Self)impl<'a> Repr<Slice<u8>> for &'a strfn repr(&self) -> Timpl<'a> Ord for &'a strimpl<'a> PartialEq for &'a strimpl<'a> Eq for &'a strimpl<'a> PartialOrd for &'a strfn lt(&self, other: &&'a str) -> boolfn le(&self, other: &Self) -> boolfn gt(&self, other: &Self) -> boolfn ge(&self, other: &Self) -> boolimpl<'a, S: Str> Equiv<S> for &'a strimpl<'a> Str for &'a strimpl<'a> Collection for &'a strimpl<'a> StrSlice<'a> for &'a strfn contains<'a>(&self, needle: &'a str) -> boolfn contains_char(&self, needle: char) -> boolfn chars(&self) -> Chars<'a>fn bytes(&self) -> Bytes<'a>fn char_indices(&self) -> CharOffsets<'a>fn split<Sep: CharEq>(&self, sep: Sep) -> CharSplits<'a, Sep>fn splitn<Sep: CharEq>(&self, sep: Sep, count: uint) -> CharSplitsN<'a, Sep>fn split_terminator<Sep: CharEq>(&self, sep: Sep) -> CharSplits<'a, Sep>fn rsplitn<Sep: CharEq>(&self, sep: Sep, count: uint) -> CharSplitsN<'a, Sep>fn match_indices(&self, sep: &'a str) -> MatchIndices<'a>fn split_str(&self, sep: &'a str) -> StrSplits<'a>fn lines(&self) -> CharSplits<'a, char>fn lines_any(&self) -> AnyLines<'a>fn words(&self) -> Words<'a>fn is_whitespace(&self) -> boolfn is_alphanumeric(&self) -> boolfn char_len(&self) -> uintfn slice(&self, begin: uint, end: uint) -> &'a strfn slice_from(&self, begin: uint) -> &'a strfn slice_to(&self, end: uint) -> &'a strfn slice_chars(&self, begin: uint, end: uint) -> &'a strfn starts_with<'a>(&self, needle: &'a str) -> boolfn ends_with(&self, needle: &str) -> boolfn trim(&self) -> &'a strfn trim_left(&self) -> &'a strfn trim_right(&self) -> &'a strfn trim_chars<C: CharEq>(&self, to_trim: C) -> &'a strfn trim_left_chars<C: CharEq>(&self, to_trim: C) -> &'a strfn trim_right_chars<C: CharEq>(&self, to_trim: C) -> &'a strfn is_char_boundary(&self, index: uint) -> boolfn char_range_at(&self, i: uint) -> CharRangefn char_range_at_reverse(&self, start: uint) -> CharRangefn char_at(&self, i: uint) -> charfn char_at_reverse(&self, i: uint) -> charfn as_bytes(&self) -> &'a [u8]fn find<C: CharEq>(&self, search: C) -> Option<uint>fn rfind<C: CharEq>(&self, search: C) -> Option<uint>fn find_str(&self, needle: &str) -> Option<uint>fn slice_shift_char(&self) -> (Option<char>, &'a str)fn subslice_offset(&self, inner: &str) -> uintfn as_ptr(&self) -> *u8impl<'a> Default for &'a strimpl<'a> Show for &'a str
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).