car

Crates.iocar
lib.rscar
version0.1.0
sourcesrc
created_at2024-03-29 14:57:12.677823
updated_at2024-07-14 12:48:25.081299
descriptionstd::array::{map, from_fn, try_from_fn} in const
homepage
repositoryhttps://github.com/bend-n/car
max_upload_size
id1190244
size7,412
bendn (bend-n)

documentation

README

car

macro based array manipulation constant techniques

you wanted a quick LUT in const? here you go!

// please note that this is in no way performant or a good idea.
let squares: [usize; 0xffffffff] = car::from_fn!(|i| i * 2);

completely stable!

for once!

Commit count: 1

cargo fmt