Macro andex::andex_array
source · macro_rules! andex_array { ($andex: ty, $item: ty) => { ... }; }
Expand description
Helper macro that creates an AndexableArray from an Andex
This macro just uses the Andex argument to figure out the array size, so that we don’t have to repeat it here.
Example:
use andex::*;
enum MyIdxMarker {};
type MyIdx = Andex<MyIdxMarker, 12>;
// Create the array wrapper with the macro:
type MyU32 = andex_array!(MyIdx, u32);