[][src]Macro bitset_core::bitset

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

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);