Macro bones_lib::ecs::prelude::bitset

macro_rules! bitset {
    ($init:expr; $($bit:expr),* $(,)?) => { ... };
}
Expand description

Shorthand for setting bits on the bitset container.

Returns the value of the initial argument after setting the bits.

use bitset_core::{bitset, BitSet};
let bits = bitset!([0u8; 4]; 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31);
assert_eq!(bits.bit_count(), 11);