arraytools
A variety of helpful methods for working with fixed-size arrays.
Examples
Iterator
-like methods over arrays:
use ArrayTools;
assert_eq!;
assert_eq!;
Ways to simplify array creation:
use ArrayTools;
let mut state = 1;
assert_eq!;
assert_eq!;
let s = "hello".to_string; // Something `!Copy`
assert_eq!;
Conversion to and from homogeneous tuples:
use ArrayTools;
let mut array = ;
assert_eq!;
array = from_tuple;
assert_eq!;
Usage
How to use with cargo:
[]
= "0.1"
How to use in your 2018-edition crate:
use ArrayTools;
Because this needs non-Copy
slice patterns, it needs at least Rust 1.31.0.