Struct aho_corasick::FullAcAutomaton
[−]
[src]
pub struct FullAcAutomaton { // some fields omitted }
A complete Aho-Corasick automaton.
This uses a single transition matrix that permits each input character to move to the next state with a single lookup in the matrix.
This is as fast as it gets, but it is guaranteed to use a lot of memory.
Namely, it will use at least 4 * 256 * #states
, where the number of
states is capped at length of all patterns concatenated.
Methods
impl FullAcAutomaton
fn new<T: Transitions>(ac: AcAutomaton<T>) -> FullAcAutomaton
Build a new expanded Aho-Corasick automaton from an existing Aho-Corasick automaton.