Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
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
"All that to say that Rust does precisely this great job at decoupling some of these notions that have been, historically, quite tangled for a while; a..."

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, research, crates, and Rust API documentation. These operators give you finer control — click an example to try it.

Find pages containing all your words. Pages where the words appear together rank higher.
Quote part of your query to keep those words together as an exact phrase within a larger search.
Wrap the whole query in quotes for a verbatim search that matches text exactly, punctuation and all — perfect for Rust syntax. Needs at least 3 characters.
Put ! first to open the top result immediately. Quote the whole query for a literal leading bang, as in '!Send'. Bangs elsewhere, such as println!, stay literal. Browser and launcher shortcuts can invoke this directly. See search integrations.
Limit results to a single site. Works on its own () too. One site: per search.

Use the tabs and filters above the results to narrow by content type, publication year, and sort order.