Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub struct IterMut<'a, T>
Mutable slice iterator.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn as_slice(&self) -> &'a [T]
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 Iter<'a, T>
Immutable slice iterator
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct ChunksMut<'a, T>
An iterator over a slice in (non-overlapping) mutable chunks (chunk_size elements at a time), starting at the beginning of the slice.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn into_remainder(self) -> &'a mut [T]
Returns the remainder of the original slice that is not going to be returned by the iterator. The returned slice has at most chunk_size-1 elements.
method core Stable since 1.31.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct ChunksExactMut<'a, T>
An iterator over a slice in (non-overlapping) mutable chunks (chunk_size elements at a time), starting at the beginning of the slice.
struct core Stable since 1.31.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn remainder(&self) -> &'a [T]
Returns the remainder of the original slice that is not going to be returned by the iterator. The returned slice has at most chunk_size-1 elements.
method core Stable since 1.31.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct ChunksExact<'a, T>
An iterator over a slice in (non-overlapping) chunks (chunk_size elements at a time), starting at the beginning of the slice.
struct core Stable since 1.31.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Chunks<'a, T>
An iterator over a slice in (non-overlapping) chunks (chunk_size elements at a time), starting at the beginning of the slice.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct ChunkByMut<'a, T, P>
An iterator over slice in (non-overlapping) mutable chunks separated by a predicate.
struct core Stable since 1.77.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct ChunkBy<'a, T, P>
An iterator over slice in (non-overlapping) chunks separated by a predicate.
struct core Stable since 1.77.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct ArrayWindows<'a, T, const N: usize>
A windowed iterator over a slice in overlapping chunks (N elements at a time), starting at the beginning of the slice
struct core Stable since 1.94.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn iter(&self) -> Iter<'_, T>
Returns an iterator over the slice.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
Checks if the elements of this slice are sorted using the given key extraction function.
method core Stable since 1.82.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
Checks if the elements of this slice are sorted using the given comparator function.
method core Stable since 1.82.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn is_sorted(&self) -> bool
Checks if the elements of this slice are sorted.
method core Stable since 1.82.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_empty(&self) -> bool
Returns true if the slice has a length of 0.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii(&self) -> bool
Checks if all bytes in this slice are within the ASCII range.
method core Stable since 1.23.0 Version 1.100.0-nightly
doc.rust-lang.org
type Output
The output type returned by methods.
associated_type core Stable since 1.28.0 Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe trait SliceIndex<T>
A helper trait used for indexing operations.
trait core Stable since 1.28.0 Version 1.100.0-nightly
"That would take 18 million terabytes of RAM. You don't have that much memory."

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.