Utilities for the array primitive type.
The error type returned when a conversion from a slice to an array fails.
Creates an array
[T; N]where each fallible array element
Tis returned by the
from_fn, where the element creation can’t fail, this version will return an error if any element creation was unsuccessful.
Creates an array of type [T; N], where each element
Tis the returned value from
cbusing that element’s index.
Converts a mutable reference to
Tinto a mutable reference to an array of length 1 (without copying).
Converts a reference to
Tinto a reference to an array of length 1 (without copying).