pub enum Reluctance {
Greedy,
Lazy,
Possessive,
}
Expand description
Reluctance for quantifiers.
Variants§
Greedy
Grabs as many repetitions as possible, then backtracks if the rest of the pattern cannot match.
Lazy
Starts with as few repetitions as possible, adding more only if the rest of the pattern cannot match.
Possessive
Grabs as many repetitions as possible and never backtracks; if the rest of the pattern cannot match, the whole match fails.
Implementations§
Trait Implementations§
Source§impl Clone for Reluctance
impl Clone for Reluctance
Source§fn clone(&self) -> Reluctance
fn clone(&self) -> Reluctance
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 Reluctance
impl Debug for Reluctance
Source§impl Default for Reluctance
impl Default for Reluctance
Source§fn default() -> Reluctance
fn default() -> Reluctance
Returns the “default value” for a type. Read more
Source§impl Hash for Reluctance
impl Hash for Reluctance
Source§impl PartialEq for Reluctance
impl PartialEq for Reluctance
impl Copy for Reluctance
impl Eq for Reluctance
impl StructuralPartialEq for Reluctance
Auto Trait Implementations§
impl Freeze for Reluctance
impl RefUnwindSafe for Reluctance
impl Send for Reluctance
impl Sync for Reluctance
impl Unpin for Reluctance
impl UnwindSafe for Reluctance
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