Module std::array 1.36.0[−][src]
Expand description
Helper functions and types for fixed-length arrays.
Structs
The error type returned when a conversion from a slice to an array fails.
Functions
from_fnExperimental
Creates an array [T; N] where each array element T is returned by the cb call.
try_from_fnExperimental
Creates an array [T; N] where each fallible array element T is returned by the cb call.
Unlike core::array::from_fn, where the element creation can’t fail, this version will return an error
if any element creation was unsuccessful.
Converts a mutable reference to T into a mutable reference to an array of length 1 (without copying).
Converts a reference to T into a reference to an array of length 1 (without copying).