doc.rust-lang.org
pub fn split_inclusive<P>(&self, pat: P) -> SplitInclusive<'_, P>
Returns an iterator over substrings of this string slice, separated by characters matched by a pattern.
method
core
Stable since 1.51.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn split_at_mut_checked(&mut self, mid: usize) -> Option<(&mut str, &mut str)>
Divides one mutable string slice into two at an index.
method
core
Stable since 1.80.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)
Divides one mutable string slice into two at an index.
method
core
Stable since 1.4.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn split_at_checked(&self, mid: usize) -> Option<(&str, &str)>
Divides one string slice into two at an index.
method
core
Stable since 1.80.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn split_at(&self, mid: usize) -> (&str, &str)
Divides one string slice into two at an index.
method
core
Stable since 1.4.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>
Splits a string slice by ASCII whitespace.
method
core
Stable since 1.34.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn split<P>(&self, pat: P) -> Split<'_, P>
Returns an iterator over substrings of this string slice, separated by characters matched by a pattern.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str
Creates a string slice from another string slice, bypassing safety checks.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str
Creates a string slice from another string slice, bypassing safety checks.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn rsplitn<P>(&self, n: usize, pat: P) -> RSplitN<'_, P>
Returns an iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn rsplit_terminator<P>(&self, pat: P) -> RSplitTerminator<'_, P>
Returns an iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn rsplit_once<P>(&self, delimiter: P) -> Option<(&str, &str)>
Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.
method
core
Stable since 1.52.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn rsplit<P>(&self, pat: P) -> RSplit<'_, P>
Returns an iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn rmatches<P>(&self, pat: P) -> RMatches<'_, P>
Returns an iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.
method
core
Stable since 1.2.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn rmatch_indices<P>(&self, pat: P) -> RMatchIndices<'_, P>
Returns an iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn rfind<P>(&self, pat: P) -> Option<usize>
Returns the byte index for the first character of the last match of the pattern in this string slice.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn parse<F>(&self) -> Result<F, <F as >::Err>
Parses this string slice into another type.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn matches<P>(&self, pat: P) -> Matches<'_, P>
Returns an iterator over the disjoint matches of a pattern within the given string slice.
method
core
Stable since 1.2.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn match_indices<P>(&self, pat: P) -> MatchIndices<'_, P>
Returns an iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn make_ascii_uppercase(&mut self)
Converts this string to its ASCII upper case equivalent in-place.
method
core
Stable since 1.23.0
Version 1.100.0-nightly