numeric-lut
A library for generating numeric lookup functions. Currently, it requires the use of the
proc_macro_hygiene nightly feature.
Examples
let lut = lut!;
let x = lut;
assert_eq!;
numeric-lutA library for generating numeric lookup functions. Currently, it requires the use of the
proc_macro_hygiene nightly feature.
#![feature(proc_macro_hygiene)]
let lut = numeric_lut::lut!(|x @ 0..8, y @ 0..16| -> u32 { x as u32 + y as u32 });
let x = lut(3, 10);
assert_eq!(13, x);