Enum aho_corasick::AhoCorasickKind
source · [−]#[non_exhaustive]
pub enum AhoCorasickKind {
NoncontiguousNFA,
ContiguousNFA,
DFA,
}
Expand description
The type of Aho-Corasick implementation to use in an AhoCorasick
searcher.
This is principally used as an input to the
AhoCorasickBuilder::start_kind
method. Its documentation goes into more
detail about each choice.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoncontiguousNFA
Use a noncontiguous NFA.
ContiguousNFA
Use a contiguous NFA.
DFA
Use a DFA. Warning: DFAs typically use a large amount of memory.
Trait Implementations
sourceimpl Clone for AhoCorasickKind
impl Clone for AhoCorasickKind
sourcefn clone(&self) -> AhoCorasickKind
fn clone(&self) -> AhoCorasickKind
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AhoCorasickKind
impl Debug for AhoCorasickKind
sourceimpl PartialEq<AhoCorasickKind> for AhoCorasickKind
impl PartialEq<AhoCorasickKind> for AhoCorasickKind
sourcefn eq(&self, other: &AhoCorasickKind) -> bool
fn eq(&self, other: &AhoCorasickKind) -> bool
impl Copy for AhoCorasickKind
impl Eq for AhoCorasickKind
impl StructuralEq for AhoCorasickKind
impl StructuralPartialEq for AhoCorasickKind
Auto Trait Implementations
impl RefUnwindSafe for AhoCorasickKind
impl Send for AhoCorasickKind
impl Sync for AhoCorasickKind
impl Unpin for AhoCorasickKind
impl UnwindSafe for AhoCorasickKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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