numeric-lut 0.1.0

A library for generating numeric lookup functions.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 10.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 291.01 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • dflemstr/numeric-lut
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dflemstr

numeric-lut

A library for generating numeric lookup functions. Currently, it requires the use of the proc_macro_hygiene nightly feature.

Examples

#![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);