Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub struct MatchIndices<'a, P>
Created with the method match_indices.
struct core Stable since 1.5.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct LinesAny<'a>
Created with the method lines_any.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Lines<'a>
An iterator over the lines of a string, as string slices.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct EscapeUnicode<'a>
The return type of str::escape_unicode.
struct core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct EscapeDefault<'a>
The return type of str::escape_default.
struct core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct EscapeDebug<'a>
The return type of str::escape_debug.
struct core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct EncodeUtf16<'a>
An iterator of u16 over the string encoded as UTF-16.
struct core Stable since 1.8.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn as_str(&self) -> &'a str
Views the underlying data as a subslice of the original data.
method core Stable since 1.4.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Chars<'a>
An iterator over the chars of a string slice.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn offset(&self) -> usize
Returns the byte position of the next character, or the length of the underlying string if there are no more characters.
method core Stable since 1.82.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn as_str(&self) -> &'a str
Views the underlying data as a subslice of the original data.
method core Stable since 1.4.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct CharIndices<'a>
An iterator over the chars of a string slice, and their positions.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Bytes<'a>
An iterator over the bytes of a string slice.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_empty(&self) -> bool
Returns true if self has a length of zero bytes.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_char_boundary(&self, index: usize) -> bool
Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.
method core Stable since 1.9.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii(&self) -> bool
Checks if all characters in this string are within the ASCII range.
method core Stable since 1.23.0 Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn get_unchecked_mut<I>(&mut self, i: I) -> &mut <I as >::Output
Returns a mutable, unchecked subslice of str.
method core Stable since 1.20.0 Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as >::Output
Returns an unchecked subslice of str.
method core Stable since 1.20.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn get_mut<I>(&mut self, i: I) -> Option<&mut <I as >::Output>
Returns a mutable subslice of str.
method core Stable since 1.20.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn get<I>(&self, i: I) -> Option<&<I as >::Output>
Returns a subslice of str.
method core Stable since 1.20.0 Version 1.100.0-nightly
"**Presenter**: One of the obvious dangers of AI, it may one day rewrite all code in some cryptic programming language no human is capable of understan..."
— Unknown people overheard during a meeting

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.