Crate regroup

source ·

Traits§

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

Functions§

  • Get a mutable reference to the Ts in an array.
  • Get a reference to the Ts in an array.
  • 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.
  • 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.
  • Get the number of Ts in an array of Ts, which is the same for all values of that array’s type.
  • 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 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.
  • 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.
  • Convert a reference-counted array of Ts into a reference-counted slice of Ts.
  • Convert a boxed array of Ts into a boxed slice of Ts.
  • Convert a reference-counted array of Ts into a reference-counted slice of Ts.
  • Convert a vector of arrays of Ts into a vector of Ts.
  • Get the number of Ts in an array of Ts.
  • 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 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.
  • Convert a reference-counted array into a reference-counted array, if the lengths are the same.
  • 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.
  • Convert a vector of arrays into a vector of arrays, if the overall lengths are the same, and the resulting capacity is an integer.
  • Get the number of Ts in an array of Ts, which is the same for all values of that array’s type.
  • Convert a boxed slice into a boxed array, if the length is correct.
  • 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.
  • 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.
  • Get the number of Ts in an array of Ts.