pub enum AmbiguousSubmatchMode {
Greedy,
}Variants§
Greedy
While not POSIX standard, the greedy method for determining ambiguous submatches is able to be implemented the most efficiently in the general case. This is based on the popular Perl regex rules for ambiguous submatching.
- Quantifiers match as much as possible while allowing the rest to match
- Alternations prioritize the earlier options
- Since it is greedy, the leftmost quantifier/alternations will match first.
Trait Implementations§
Source§impl Clone for AmbiguousSubmatchMode
impl Clone for AmbiguousSubmatchMode
Source§fn clone(&self) -> AmbiguousSubmatchMode
fn clone(&self) -> AmbiguousSubmatchMode
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 AmbiguousSubmatchMode
impl Debug for AmbiguousSubmatchMode
Source§impl PartialEq for AmbiguousSubmatchMode
impl PartialEq for AmbiguousSubmatchMode
impl Copy for AmbiguousSubmatchMode
impl Eq for AmbiguousSubmatchMode
impl StructuralPartialEq for AmbiguousSubmatchMode
Auto Trait Implementations§
impl Freeze for AmbiguousSubmatchMode
impl RefUnwindSafe for AmbiguousSubmatchMode
impl Send for AmbiguousSubmatchMode
impl Sync for AmbiguousSubmatchMode
impl Unpin for AmbiguousSubmatchMode
impl UnwindSafe for AmbiguousSubmatchMode
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