Enum lua_pattern::Quantifier
source · 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<Quantifier> for Quantifier
impl PartialEq<Quantifier> for Quantifier
source§fn eq(&self, other: &Quantifier) -> bool
fn eq(&self, other: &Quantifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Token> for Quantifier
impl TryFrom<Token> for Quantifier
impl Copy for Quantifier
impl Eq for Quantifier
impl StructuralEq for Quantifier
impl StructuralPartialEq for Quantifier
Auto Trait Implementations§
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