[−][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]
fn next_state(&self, si: StateIdx, i: u8) -> StateIdx
[src]
fn get_match(&self, si: StateIdx, outi: usize, texti: usize) -> Match
[src]
fn has_match(&self, si: StateIdx, outi: usize) -> bool
[src]
fn start_bytes(&self) -> &[u8]
[src]
fn patterns(&self) -> &[P]
[src]
fn pattern(&self, i: usize) -> &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]
&'a self,
s: &'s Q
) -> Matches<'a, 's, P, Self> where
Self: Sized,
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]
&'a self,
s: &'s Q
) -> MatchesOverlapping<'a, 's, P, Self> where
Self: Sized,
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]
Self: Sized,
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]
&'a self,
rdr: R
) -> StreamMatchesOverlapping<'a, R, P, Self> where
Self: Sized,
Returns an iterator of overlapping matches in the given reader.
impl<P: Clone> Clone for FullAcAutomaton<P>
[src]
fn clone(&self) -> 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,
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
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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>,