car

Crates.iocar
lib.rscar
version0.1.3
created_at2024-03-29 14:57:12.677823+00
updated_at2025-08-23 09:01:39.13742+00
descriptionstd::array::{map, from_fn, try_from_fn} in const
homepage
repositoryhttps://github.com/bend-n/car
max_upload_size
id1190244
size11,171
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: 5

cargo fmt