Expand description
Functions and tools for manipulating arrays of items.
Functions§
- copy_
subset - Copies from the provided source slice into a statically sized output array. Uses [
&T::copy_from_slice] under-the-hood, and will panic ifNis greater than the provided slice length. - longest_
consecutive_ values - Searches the provided array for the longest consecutive repeated sequence of ‘val’.
- max_
index - Scans through the array, looking for the maximum value contained within it, using the
PartialOrdoperation. Returns the first index of the maximum detected value.