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