What do you want to save?
Add Code snippet
New code examples in category Rust
-
-
Lionel Aguero 2022-02-19 17:35:12
rust bitset stack
use fixed_bitset::Bitset; use typenum::consts::*; let mut set = Bitset::<U100>::new(); set.insert(20); set.insert(70); // set.insert(100); // WILL PANIC! let values: Vec<usize> = set.iter().collect(); assert_eq!(values, vec![20, 70]); let ... Add solution
Best helpers
Ranking is empty