Macro fuzzcheck::repetition [−][src]
macro_rules! repetition { ($g : expr, $range : expr) => { ... }; }
Expand description
Creates a grammar corresponding to the repetition of a rule.
use fuzzcheck::{repetition, literal}; // will match only the strings "", "a", and "aa" let g = repetition! { literal!('a'), 0 ..= 2 };