[][src]Struct aho_corasick::FullAcAutomaton

pub struct FullAcAutomaton<P> { /* 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<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]

fn len(&self) -> usize[src]

Return the number of patterns in the automaton.

fn is_empty(&self) -> bool[src]

Returns true if the automaton has no patterns.

Important traits for Matches<'a, 's, P, A>
fn find<'a, 's, Q: ?Sized + AsRef<[u8]>>(
    &'a self,
    s: &'s Q
) -> Matches<'a, 's, P, Self> where
    Self: Sized
[src]

Returns an iterator of non-overlapping matches in s.

Important traits for MatchesOverlapping<'a, 's, P, A>
fn find_overlapping<'a, 's, Q: ?Sized + AsRef<[u8]>>(
    &'a self,
    s: &'s Q
) -> MatchesOverlapping<'a, 's, P, Self> where
    Self: Sized
[src]

Returns an iterator of overlapping matches in s.

Important traits for StreamMatches<'a, R, P, A>
fn stream_find<'a, R: Read>(&'a self, rdr: R) -> StreamMatches<'a, R, P, Self> where
    Self: Sized
[src]

Returns an iterator of non-overlapping matches in the given reader.

Important traits for StreamMatchesOverlapping<'a, R, P, A>
fn stream_find_overlapping<'a, R: Read>(
    &'a self,
    rdr: R
) -> StreamMatchesOverlapping<'a, R, P, Self> where
    Self: Sized
[src]

Returns an iterator of overlapping matches in the given reader.

impl<P: Clone> Clone for FullAcAutomaton<P>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<P: AsRef<[u8]> + Debug> Debug for FullAcAutomaton<P>[src]

Auto Trait Implementations

impl<P> Send for FullAcAutomaton<P> where
    P: Send

impl<P> Sync for FullAcAutomaton<P> where
    P: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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.