generator_combinator/
macros.rs

1#[macro_export]
2macro_rules! gen {
3    ($a : expr) => {
4        Generator::from($a)
5    };
6}
7
8#[macro_export]
9macro_rules! oneof {
10    ($a : expr) => {
11        Generator::from($a)
12    };
13    ($a:expr, $($b:expr),+) => {
14        Generator::from($a) | oneof!($($b),+)
15    };
16}