[][src]Macro vob::vob

macro_rules! vob {
    (@single $($x:tt)*) => { ... };
    ($($rest:expr),+,) => { ... };
    (@count $($rest:expr),*) => { ... };
    ($elem:expr; $n:expr) => { ... };
    () => { ... };
    ($($x:expr),*) => { ... };
}

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![10; true]);