[−][src]Struct aho_corasick::FullAcAutomaton
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<P: AsRef<[u8]>> FullAcAutomaton<P>
[src][−]
pub fn new<T: Transitions>(ac: AcAutomaton<P, T>) -> FullAcAutomaton<P>
[src][−]
Build a new expanded Aho-Corasick automaton from an existing Aho-Corasick automaton.
Trait Implementations
impl<P: AsRef<[u8]>> Automaton<P> for FullAcAutomaton<P>
[src][+]
impl<P: Clone> Clone for FullAcAutomaton<P>
[src][+]
impl<P: AsRef<[u8]> + Debug> Debug for FullAcAutomaton<P>
[src][+]
Auto Trait Implementations
impl<P> Send for FullAcAutomaton<P> where
P: Send,
P: Send,
impl<P> Sync for FullAcAutomaton<P> where
P: Sync,
P: Sync,
Blanket Implementations
impl<T> From for T
[src][−]
impl<T, U> Into for T where
U: From<T>,
[src][−]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][−]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src][−]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src][−]
impl<T> Borrow for T where
T: ?Sized,
[src][−]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src][−]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src][−]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src][−]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src][−]
impl<T> Any for T where
T: 'static + ?Sized,
[src][−]
T: 'static + ?Sized,