arrayref 0.1.0

This package contains just two macros, for the taking of array references to slices of anything that can be sliced.

Examples

Here is a simple example of slicing and dicing a slice into array references with these macros.

I would give a real example here, but I can't figure out how to make my doctest actually load the macros...

let mut foobar = [0; 512]; let bar = array_ref!(foobar, 0, u16, 8); // first 8 elements