Module arrays

Module arrays 

Source
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 if N is 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 PartialOrd operation. Returns the first index of the maximum detected value.