Enum aho_corasick::packed::MatchKind [−][src]
A knob for controlling the match semantics of a packed multiple string searcher.
This differs from the
MatchKind
type in the top-level crate module in that it doesn’t support
“standard” match semantics, and instead only supports leftmost-first or
leftmost-longest. Namely, “standard” semantics cannot be easily supported
by packed searchers.
For more information on the distinction between leftmost-first and
leftmost-longest, see the docs on the top-level MatchKind
type.
Unlike the top-level MatchKind
type, the default match semantics for this
type are leftmost-first.
Variants
Use leftmost-first match semantics, which reports leftmost matches. When there are multiple possible leftmost matches, the match corresponding to the pattern that appeared earlier when constructing the automaton is reported.
This is the default.
Use leftmost-longest match semantics, which reports leftmost matches. When there are multiple possible leftmost matches, the longest match is chosen.
Trait Implementations
impl Clone for MatchKind
[src]
impl Copy for MatchKind
[src]
impl Debug for MatchKind
[src]
impl Default for MatchKind
[src]
impl Eq for MatchKind
[src]
impl PartialEq<MatchKind> for MatchKind
[src]
fn eq(&self, other: &MatchKind) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for MatchKind
[src]
impl StructuralPartialEq for MatchKind
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,