Struct aho_corasick::AcAutomaton
[−]
[src]
pub struct AcAutomaton<T = Dense> { // some fields omitted }
An Aho-Corasick finite automaton.
Methods
impl AcAutomaton
fn new<S, I>(pats: I) -> AcAutomaton<Dense> where S: Into<String>, I: IntoIterator<Item=S>
Create a new automaton from an iterator of patterns.
The patterns must be convertible to Unicode String
values via the
Into
trait.
impl<T: Transitions> AcAutomaton<T>
fn with_transitions<S, I>(pats: I) -> AcAutomaton<T> where S: Into<String>, I: IntoIterator<Item=S>
Create a new automaton from an iterator of patterns.
This constructor allows one to choose the transition representation.
The patterns must be convertible to Unicode String
values via the
Into
trait.
fn into_full(self) -> FullAcAutomaton
Build out the entire automaton into a single matrix.
This will make searching as fast as possible at the expense of using
at least 4 * 256 * #states
bytes of memory.