pub enum Quantifier {
ZeroOrMore,
OneOrMore,
ZeroOrMoreLazy,
ZeroOrOne,
}
Expand description
A quantifier, specifying the amount of times the leading PatternObject
can occur.
Variants§
ZeroOrMore
Allow zero or more occurrences, taking the longest matching sequence (*
).
OneOrMore
Allow one or more occurrences, taking the longest matching sequence (+
).
ZeroOrMoreLazy
Allow zero or more occurrences, taking the shortest matching sequence (-
).
ZeroOrOne
Allow zero or one occurrences (?
).
Trait Implementations§
Source§impl Clone for Quantifier
impl Clone for Quantifier
Source§fn clone(&self) -> Quantifier
fn clone(&self) -> Quantifier
Returns a copy 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 Quantifier
impl Debug for Quantifier
Source§impl PartialEq for Quantifier
impl PartialEq for Quantifier
Source§impl TryFrom<Token> for Quantifier
impl TryFrom<Token> for Quantifier
impl Copy for Quantifier
impl Eq for Quantifier
impl StructuralPartialEq for Quantifier
Auto Trait Implementations§
impl Freeze for Quantifier
impl RefUnwindSafe for Quantifier
impl Send for Quantifier
impl Sync for Quantifier
impl Unpin for Quantifier
impl UnwindSafe for Quantifier
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