pub enum QuantKind {
ZeroOrMore,
OneOrMore,
ZeroOrOne,
Exactly(usize),
AtLeast(usize),
Between(usize, usize),
}Expand description
The kind of repetition applied by a quantifier.
Variants§
ZeroOrMore
* — zero or more.
OneOrMore
+ — one or more.
ZeroOrOne
? — zero or one.
Exactly(usize)
{n} — exactly n repetitions.
AtLeast(usize)
{n,} — at least n repetitions.
Between(usize, usize)
{n,m} — between n and m repetitions (inclusive).
Trait Implementations§
impl StructuralPartialEq for QuantKind
Auto Trait Implementations§
impl Freeze for QuantKind
impl RefUnwindSafe for QuantKind
impl Send for QuantKind
impl Sync for QuantKind
impl Unpin for QuantKind
impl UnsafeUnpin for QuantKind
impl UnwindSafe for QuantKind
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