array_ext
Extra functionality for Rust arrays.
Examples
The trait Array
provides fixed-size array generics:
use Array;
assert!;
Currently implemented for array sizes from 0 to 32, hardcoded as workaround for the lack of integer generics.
The map
and zip
methods are provided by the sized Array1, Array2, ...
types. The base Array
type only
provides a map_
method that can do T -> T
mapping.