Crate regroup

source ·

Traits

  • 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.
  • 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 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.