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<AhoCorasickKind> for AhoCorasickKind
impl PartialEq<AhoCorasickKind> 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 ==
.