pub enum CountedRepetition {
Exactly(Span),
AtLeast(Span),
Between(Span, Span),
}Expand description
Information about a counted repetition, e.g. {2}, {2,3}, or {2,}.
Variants§
Exactly(Span)
Repetition with an exact count, e.g. {2}.
AtLeast(Span)
Repetition with a minimum count, e.g. {2,}.
Between(Span, Span)
Repetition with a range of counts, e.g. {2,3}.
Trait Implementations§
Source§impl Clone for CountedRepetition
impl Clone for CountedRepetition
Source§fn clone(&self) -> CountedRepetition
fn clone(&self) -> CountedRepetition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CountedRepetition
impl Debug for CountedRepetition
Source§impl PartialEq for CountedRepetition
impl PartialEq for CountedRepetition
impl Copy for CountedRepetition
impl StructuralPartialEq for CountedRepetition
Auto Trait Implementations§
impl Freeze for CountedRepetition
impl RefUnwindSafe for CountedRepetition
impl Send for CountedRepetition
impl Sync for CountedRepetition
impl Unpin for CountedRepetition
impl UnwindSafe for CountedRepetition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more