Enum RepetitionRange
pub enum RepetitionRange
A range repetition operator.
Variants
-
Exactly(u32) {m}-
AtLeast(u32) {m,}-
Bounded(u32, u32) {m,n}
Implementations
impl RepetitionRange
fn is_valid(&self) -> boolReturns true if and only if this repetition range is valid.
The only case where a repetition range is invalid is if it is bounded and its start is greater than its end.
Trait Implementations
impl Clone for RepetitionRange
fn clone(&self) -> Self
impl Debug for RepetitionRange
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for RepetitionRange
impl PartialEq for RepetitionRange
fn eq(&self, other: &Self) -> bool