doc.rust-lang.org
pub struct TryFromSliceError
The error type returned when a conversion from a slice to an array fails.
struct
core
Stable since 1.34.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_mut_slice(&mut self) -> &mut [T]
Returns a mutable slice containing the entire array. Equivalent to &mut s[..].
method
core
Stable since 1.57.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_slice(&self) -> &[T]
Returns a slice containing the entire array. Equivalent to &s[..].
method
core
Stable since 1.57.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn each_mut(&mut self) -> [&mut T; N]
Borrows each element mutably and returns an array of mutable references with the same size as self.
method
core
Stable since 1.77.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn each_ref(&self) -> [&T; N]
Borrows each element and returns an array of references with the same size as self.
method
core
Stable since 1.77.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_fn<T, const N: usize, F>(f: F) -> [T; N]
Creates an array where each element is produced by calling f with that element's index while walking forward through the array.
function
core
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_mut<T>(s: &mut T) -> &mut [T; 1]
Converts a mutable reference to T into a mutable reference to an array of length 1 (without copying).
function
core
Stable since 1.53.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_ref<T>(s: &T) -> &[T; 1]
Converts a reference to T into a reference to an array of length 1 (without copying).
function
core
Stable since 1.53.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct IntoIter<T, const N: usize>
A by-value array iterator.
struct
core
Stable since 1.51.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_mut_slice(&mut self) -> &mut [T]
Returns a mutable slice of all elements that have not been yielded yet.
method
core
Stable since 1.51.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn as_slice(&self) -> &[T]
Returns an immutable slice of all elements that have not been yielded yet.
method
core
Stable since 1.51.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn new(array: [T; N]) -> Self
Creates a new iterator over the given array.
associated_function
core
Stable since 1.51.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn map<F, U>(self, f: F) -> [U; N]
Returns an array of the same size as self, with function f applied to each element in order.
method
core
Stable since 1.55.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn repeat<T, const N: usize>(val: T) -> [T; N]
Creates an array of type [T; N] by repeatedly cloning a value.
function
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod ascii
Operations on ASCII strings and characters.
module
core
Stable since 1.26.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct EscapeDefault
An iterator over the escaped version of a byte.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn escape_default(c: u8) -> EscapeDefault
Returns an iterator that produces an escaped version of a u8.
function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub macro assert!
Asserts that a boolean expression is true at runtime.
macro
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub macro assert_eq!
Asserts that two expressions are equal to each other (using PartialEq).
macro
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub macro assert_ne!
Asserts that two expressions are not equal to each other (using PartialEq).
macro
core
Stable since 1.13.0
Version 1.100.0-nightly