Macro boolvec

Source
macro_rules! boolvec {
    [$($val:expr),*] => { ... };
    [$val:expr; $length:expr] => { ... };
}
Expand description

Works exactly like vec![] macro.

use bool_vec::{BoolVec, boolvec};
let mut bv1 = BoolVec::with_capacity(3);
bv1.push(true);
bv1.push(true);
bv1.push(true);

let bv2 = boolvec![true, true, true];

let bv3 = boolvec![true; 3];

assert_eq!(bv1, bv2);
assert_eq!(bv2, bv3);
assert_eq!(bv3, bv1);