array_ext
Extra functionality for Rust arrays.
Examples
The trait Array
provides fixed-size array generics:
use Array;
assert!;
Some methods, like zip_with
, are provided by the sized ArrayN
trait that allows doing full
[T; N] -> [U; N]
mapping. The base Array
trait can only do [T; N] -> [T; N]
mapping.
This was originally made as workaround for the lack of const generics, but since v0.4 everything is implemented using const generics.