Get a mutable reference to the T
s in an array.
Get a reference to the T
s in an array.
Splits a mutable reference to an array of T
s into a reference to a slice
of arrays of T
s at the beginning and a reference to the slice of the
remaining T
s at the end.
Splits a shared reference to an array of T
s into a reference to a slice of
arrays of T
s at the beginning and a reference to the slice of the
remaining T
s at the end.
Produces a reference to an empty array by casting a reference to an empty
slice.
Produces a boxed empty array by casting a boxed empty slice.
Produces a mutable reference to an empty array by casting a mutable
reference to an empty slice.
Splits a shared reference to a slice of T
s into a reference to an array of
T
s at the beginning of the slice and a reference to the slice of the
remaining T
s at the end of the slice.
Splits a shared reference to a slice of T
s into a reference to an array of
T
s at the beginning of the slice and a reference to the slice of the
remaining T
s at the end of the slice.
Convert a reference-counted array of T
s into a reference-counted slice of
T
s.
Convert a boxed array of T
s into a boxed slice of T
s.
Convert a reference-counted array of T
s into a reference-counted slice of
T
s.
Convert a vector of arrays of T
s into a vector of T
s.
Get the number of T
s in an array of T
s.
See
try_from_slice
. The tail is reassigned to the original slice
reference if
Some(array)
is returned, otherwise the original slice
reference is not modified.
See
try_from_mut_slice
. The tail is reassigned to the original slice
reference if
Some(array)
is returned, otherwise the original slice
reference is not modified.
Convert a reference-counted array into a reference-counted array, if the
lengths are the same.
Convert a boxed array into a boxed array, if the lengths are the same.
Splits a mutable reference to an array of T
s into a reference to a
subarray of T
s at the beginning and a reference to the slice of the
remaining T
s at the end.
Convert a reference-counted array into a reference-counted array, if the
lengths are the same.
Splits a shared reference to an array of T
s into a reference to a subarray
of T
s at the beginning and a reference to the slice of the
remaining T
s at the end.
Convert a boxed slice into a boxed array, if the length is correct.
Splits a shared reference to a slice of T
s into a reference to an array of
T
s at the beginning of the slice and a reference to the slice of the
remaining T
s at the end of the slice.
Splits a shared reference to a slice of T
s into a reference to an array of
T
s at the beginning of the slice and a reference to the slice of the
remaining T
s at the end of the slice.
Get the number of T
s in an array of T
s.