macro_rules! vob {
(@single $($x:tt)*) => { ... };
($($rest:expr),+,) => { ... };
(@count $($rest:expr),*) => { ... };
($elem:expr; $n:expr) => { ... };
() => { ... };
($($x:expr),*) => { ... };
}
Expand description
Create a Vob
from a list of boolean values.
Examples
#[macro_use] extern crate vob;
use vob::Vob;
fn main() {
let v1 = vob![true, false];
let mut v2 = Vob::new();
v2.push(true);
v2.push(false);
assert_eq!(v1, v2);
println!("{:?}", vob![10; true]);
}