Crate regroup

Crate regroup 

Source

Traits§

ArrayExt
Trait with convenience methods for casting to a slice of T, where T can be specified per-method with a turbofish.
AsArrayOf
A type which can be borrowed (immutably or mutably) as an array of Ts.
ConstantSizeArrayOf
A type which is an array of Ts of compile-time-known size.
FromArrayOf
A type which can be infallibly converted to from a [T], possibly with some elements left over.
IsArrayOf
A type which is an array of Ts.
TryFromArrayOf
A type which can be fallibly converted to from a [T], possibly with some elements left over.

Functions§

as_mut_slice
Get a mutable reference to the Ts in an array.
as_slice
Get a reference to the Ts in an array.
cast_mut
Splits a mutable reference to an array of Ts into a reference to a slice of arrays of Ts at the beginning and a reference to the slice of the remaining Ts at the end.
cast_ref
Splits a shared reference to an array of Ts into a reference to a slice of arrays of Ts at the beginning and a reference to the slice of the remaining Ts at the end.
const_len
Get the number of Ts in an array of Ts, which is the same for all values of that array’s type.
empty
Produces a reference to an empty array by casting a reference to an empty slice.
empty_boxed
Produces a boxed empty array by casting a boxed empty slice.
empty_mut
Produces a mutable reference to an empty array by casting a mutable reference to an empty slice.
from_mut_slice
Splits a shared reference to a slice of Ts into a reference to an array of Ts at the beginning of the slice and a reference to the slice of the remaining Ts at the end of the slice.
from_slice
Splits a shared reference to a slice of Ts into a reference to an array of Ts at the beginning of the slice and a reference to the slice of the remaining Ts at the end of the slice.
into_arc_slice
Convert a reference-counted array of Ts into a reference-counted slice of Ts.
into_boxed_slice
Convert a boxed array of Ts into a boxed slice of Ts.
into_rc_slice
Convert a reference-counted array of Ts into a reference-counted slice of Ts.
into_vec
Convert a vector of arrays of Ts into a vector of Ts.
len
Get the number of Ts in an array of Ts.
take_front
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.
take_front_mut
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.
try_cast_arc
Convert a reference-counted array into a reference-counted array, if the lengths are the same.
try_cast_box
Convert a boxed array into a boxed array, if the lengths are the same.
try_cast_mut
Splits a mutable reference to an array of Ts into a reference to a subarray of Ts at the beginning and a reference to the slice of the remaining Ts at the end.
try_cast_rc
Convert a reference-counted array into a reference-counted array, if the lengths are the same.
try_cast_ref
Splits a shared reference to an array of Ts into a reference to a subarray of Ts at the beginning and a reference to the slice of the remaining Ts at the end.
try_cast_vec
Convert a vector of arrays into a vector of arrays, if the overall lengths are the same, and the resulting capacity is an integer.
try_const_len
Get the number of Ts in an array of Ts, which is the same for all values of that array’s type.
try_from_boxed_slice
Convert a boxed slice into a boxed array, if the length is correct.
try_from_mut_slice
Splits a shared reference to a slice of Ts into a reference to an array of Ts at the beginning of the slice and a reference to the slice of the remaining Ts at the end of the slice.
try_from_slice
Splits a shared reference to a slice of Ts into a reference to an array of Ts at the beginning of the slice and a reference to the slice of the remaining Ts at the end of the slice.
try_len
Get the number of Ts in an array of Ts.