pub trait RepetitionArgument {
    // Required methods
    fn at_least(&self) -> usize;
    fn at_most(&self) -> Option<usize>;
}
Expand description

Trait used to accept the different argument forms we allow for the repeated combinator

Required Methods§

source

fn at_least(&self) -> usize

The minimum amount of times the thing should be repeated

source

fn at_most(&self) -> Option<usize>

The maximum aount of times the thing should be repeated. If it is unbounded, this will return None

Implementations on Foreign Types§

source§

impl RepetitionArgument for usize

source§

impl RepetitionArgument for RangeFrom<usize>

source§

impl RepetitionArgument for RangeInclusive<usize>

source§

impl RepetitionArgument for RangeToInclusive<usize>

Implementors§