Macro vob::vob

source ·
macro_rules! vob {
    (@single $($x:tt)*) => { ... };
    ($($rest:expr),+,) => { ... };
    (@count $($rest:expr),*) => { ... };
    ($val:expr; $len:expr) => { ... };
    () => { ... };
    ($($x:expr),*) => { ... };
}
Expand description

Create a Vob from a list of boolean values.

Examples

use vob::{vob, Vob};

let v1 = vob![true, false];
let mut v2 = Vob::new();
v2.push(true);
v2.push(false);
assert_eq!(v1, v2);
println!("{:?}", vob![true; 10]);