Primitive Type str
[-]
[+]
String manipulation
For more details, see std::str
String manipulation
For more details, see std::str
impl BorrowFrom<&'static str> for strfn borrow_from<'a>(owned: &'a &'static str) -> &'a strimpl Repr<Slice<u8>> for strfn repr(&self) -> Timpl Ord for strimpl PartialEq for strimpl Eq for strimpl PartialOrd for strfn partial_cmp(&self, other: &str) -> Option<Ordering>fn lt(&self, other: &Self) -> boolfn le(&self, other: &Self) -> boolfn gt(&self, other: &Self) -> boolfn ge(&self, other: &Self) -> boolimpl<S: Str> Equiv<S> for strimpl Slice<uint, str> for strfn as_slice_<'a>(&'a self) -> &'a strfn slice_from_or_fail<'a>(&'a self, from: &uint) -> &'a strfn slice_to_or_fail<'a>(&'a self, to: &uint) -> &'a strfn slice_or_fail<'a>(&'a self, from: &uint, to: &uint) -> &'a strimpl<'a> Str for &'a strimpl StrPrelude for strfn contains(&self, needle: &str) -> boolfn contains_char(&self, needle: char) -> boolfn chars(&self) -> Charsfn bytes(&self) -> Bytesfn char_indices(&self) -> CharOffsetsfn split<Sep: CharEq>(&self, sep: Sep) -> CharSplits<Sep>fn splitn<Sep: CharEq>(&self, count: uint, sep: Sep) -> CharSplitsN<Sep>fn split_terminator<Sep: CharEq>(&self, sep: Sep) -> CharSplits<Sep>fn rsplitn<Sep: CharEq>(&self, count: uint, sep: Sep) -> CharSplitsN<Sep>fn match_indices<'a>(&'a self, sep: &'a str) -> MatchIndices<'a>fn split_str<'a>(&'a self, sep: &'a str) -> StrSplits<'a>fn lines(&self) -> CharSplits<char>fn lines_any(&self) -> AnyLinesfn char_len(&self) -> uintfn slice(&self, begin: uint, end: uint) -> &strfn slice_from(&self, begin: uint) -> &strfn slice_to(&self, end: uint) -> &strfn slice_chars(&self, begin: uint, end: uint) -> &strfn starts_with(&self, needle: &str) -> boolfn ends_with(&self, needle: &str) -> boolfn trim_chars<C: CharEq>(&self, to_trim: C) -> &strfn trim_left_chars<C: CharEq>(&self, to_trim: C) -> &strfn trim_right_chars<C: CharEq>(&self, to_trim: C) -> &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) -> &[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, &str)>fn subslice_offset(&self, inner: &str) -> uintfn as_ptr(&self) -> *const u8fn utf16_units(&self) -> Utf16CodeUnitsfn len(&self) -> uintfn is_empty(&self) -> boolimpl<'a> Default for &'a strimpl Show for 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, enum,
trait, typedef (or
tdef).