#[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
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