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§
source§impl Clone for AhoCorasickKind
impl Clone for AhoCorasickKind
source§fn clone(&self) -> AhoCorasickKind
fn clone(&self) -> AhoCorasickKind
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 AhoCorasickKind
impl Debug for AhoCorasickKind
source§impl PartialEq for AhoCorasickKind
impl PartialEq for AhoCorasickKind
source§fn eq(&self, other: &AhoCorasickKind) -> bool
fn eq(&self, other: &AhoCorasickKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AhoCorasickKind
impl Eq for AhoCorasickKind
impl StructuralPartialEq for AhoCorasickKind
Auto Trait Implementations§
impl Freeze for AhoCorasickKind
impl RefUnwindSafe for AhoCorasickKind
impl Send for AhoCorasickKind
impl Sync for AhoCorasickKind
impl Unpin for AhoCorasickKind
impl UnwindSafe for AhoCorasickKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)