Enum regex_automata::MatchKind
source · [−]pub enum MatchKind {
All,
LeftmostFirst,
// some variants omitted
}
Expand description
The kind of match semantics to use for a DFA.
The default match kind is LeftmostFirst
.
Variants
All
Report all possible matches.
LeftmostFirst
Report only the leftmost matches. When multiple leftmost matches exist, report the match corresponding to the part of the regex that appears first in the syntax.
Trait Implementations
impl Copy for MatchKind
impl Eq for MatchKind
impl StructuralEq for MatchKind
impl StructuralPartialEq for MatchKind
Auto Trait Implementations
impl RefUnwindSafe for MatchKind
impl Send for MatchKind
impl Sync for MatchKind
impl Unpin for MatchKind
impl UnwindSafe for MatchKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more