Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn as_flattened_mut(&mut self) -> &mut [T]
Takes a &mut [[T; N]], and flattens it to a &mut [T].
method core Stable since 1.80.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_flattened(&self) -> &[T]
Takes a &[[T; N]], and flattens it to a &[T].
method core Stable since 1.80.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn as_chunks_unchecked_mut<const N: usize>(&mut self) -> &mut [[T; N]]
Splits the slice into a slice of N-element arrays, assuming that there's no remainder.
method core Stable since 1.88.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]
Splits the slice into a slice of N-element arrays, assuming that there's no remainder.
method core Stable since 1.88.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_chunks_mut<const N: usize>(&mut self) -> (&mut [[T; N]], &mut [T])
Splits the slice into a slice of N-element arrays, starting at the beginning of the slice, and a remainder slice with length strictly less than N.
method core Stable since 1.88.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])
Splits the slice into a slice of N-element arrays, starting at the beginning of the slice, and a remainder slice with length strictly less than N.
method core Stable since 1.88.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_array<const N: usize>(&self) -> Option<&[T; N]>
Gets a reference to the underlying array.
method core Stable since 1.93.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>
Returns an iterator over overlapping windows of N elements of a slice, starting at the beginning of the slice.
method core Stable since 1.94.0 Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn align_to_mut<U>(&mut self) -> (&mut [T], &mut [U], &mut [T])
Transmutes the mutable slice to a mutable slice of another type, ensuring alignment of the types is maintained.
method core Stable since 1.30.0 Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])
Transmutes the slice to a slice of another type, ensuring alignment of the types is maintained.
method core Stable since 1.30.0 Version 1.100.0-nightly
doc.rust-lang.org
pub enum GetDisjointMutError
The error type returned by get_disjoint_mut.
enum core Stable since 1.86.0 Version 1.100.0-nightly
doc.rust-lang.org
primitive slice
A dynamically-sized view into a contiguous sequence, [T].
primitive core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod slice
Slice management and manipulation.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unwrap_unchecked(self) -> T
Returns the contained Ok value, consuming the self value, without checking that the value is not an Err.
method core Stable since 1.58.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn unwrap_or_else<F>(self, op: F) -> T
Returns the contained Ok value or computes it from a closure.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn unwrap_or_default(self) -> T
Returns the contained Ok value or a default
method core Stable since 1.16.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn unwrap_or(self, default: T) -> T
Returns the contained Ok value or a provided default.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unwrap_err_unchecked(self) -> E
Returns the contained Err value, consuming the self value, without checking that the value is not an Ok.
method core Stable since 1.58.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn unwrap_err(self) -> E
Returns the contained Err value, consuming the self value.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn unwrap(self) -> T
Returns the contained Ok value, consuming the self value.
method core Stable since 1.0.0 Version 1.100.0-nightly
"Such large. Very 128. Much bits."

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.