Primitive Type str
[-]
[+]
String manipulation
For more details, see std::str
String manipulation
For more details, see std::str
impl 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: &Rhs) -> boolfn le(&self, other: &Rhs) -> boolfn gt(&self, other: &Rhs) -> boolfn ge(&self, other: &Rhs) -> boolimpl Index<Range<usize>> for strimpl Index<RangeTo<usize>> for strimpl Index<RangeFrom<usize>> for strimpl Index<FullRange> for strimpl Str for strimpl StrExt for strfn contains(&self, needle: &str) -> boolfn contains_char<P: CharEq>(&self, pat: P) -> boolfn chars(&self) -> Charsfn bytes(&self) -> Bytesfn char_indices(&self) -> CharIndicesfn split<P: CharEq>(&self, pat: P) -> Split<P>fn splitn<P: CharEq>(&self, count: usize, pat: P) -> SplitN<P>fn split_terminator<P: CharEq>(&self, pat: P) -> SplitTerminator<P>fn rsplitn<P: CharEq>(&self, count: usize, pat: P) -> RSplitN<P>fn match_indices<'a>(&'a self, sep: &'a str) -> MatchIndices<'a>fn split_str<'a>(&'a self, sep: &'a str) -> SplitStr<'a>fn lines(&self) -> Linesfn lines_any(&self) -> LinesAnyfn char_len(&self) -> usizefn slice(&self, begin: usize, end: usize) -> &strfn slice_from(&self, begin: usize) -> &strfn slice_to(&self, end: usize) -> &strfn slice_chars(&self, begin: usize, end: usize) -> &strunsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &strfn starts_with(&self, needle: &str) -> boolfn ends_with(&self, needle: &str) -> boolfn trim_matches<P: CharEq>(&self, pat: P) -> &strfn trim_left_matches<P: CharEq>(&self, pat: P) -> &strfn trim_right_matches<P: CharEq>(&self, pat: P) -> &strfn is_char_boundary(&self, index: usize) -> boolfn char_range_at(&self, i: usize) -> CharRangefn char_range_at_reverse(&self, start: usize) -> CharRangefn char_at(&self, i: usize) -> charfn char_at_reverse(&self, i: usize) -> charfn as_bytes(&self) -> &[u8]fn find<P: CharEq>(&self, pat: P) -> Option<usize>fn rfind<P: CharEq>(&self, pat: P) -> Option<usize>fn find_str(&self, needle: &str) -> Option<usize>fn slice_shift_char(&self) -> Option<(char, &str)>fn subslice_offset(&self, inner: &str) -> usizefn as_ptr(&self) -> *const u8fn len(&self) -> usizefn is_empty(&self) -> boolfn parse<T: FromStr>(&self) -> Option<T>impl<'a> Default for &'a strimpl<S: Writer + Hasher> Hash<S> for strfn hash(&self, state: &mut S)impl Show for strimpl String 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).