pub(crate) struct AhoCorasick {
ac: AhoCorasick,
}Fields§
§ac: AhoCorasickImplementations§
Trait Implementations§
Source§impl Clone for AhoCorasick
impl Clone for AhoCorasick
Source§fn clone(&self) -> AhoCorasick
fn clone(&self) -> AhoCorasick
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AhoCorasick
impl Debug for AhoCorasick
Source§impl PrefilterI for AhoCorasick
impl PrefilterI for AhoCorasick
Source§fn find(&self, haystack: &[u8], span: Span) -> Option<Span>
fn find(&self, haystack: &[u8], span: Span) -> Option<Span>
Run this prefilter on
haystack[span.start..end] and return a matching
span if one exists. Read moreSource§fn prefix(&self, haystack: &[u8], span: Span) -> Option<Span>
fn prefix(&self, haystack: &[u8], span: Span) -> Option<Span>
Returns the span of a prefix of
haystack[span.start..span.end] if
the prefilter matches. Read moreSource§fn memory_usage(&self) -> usize
fn memory_usage(&self) -> usize
Returns the heap memory, in bytes, used by the underlying prefilter.
Source§fn is_fast(&self) -> bool
fn is_fast(&self) -> bool
Implementations might return true here if they believe themselves to
be “fast.” See
Prefilter::is_fast for more details.Auto Trait Implementations§
impl Freeze for AhoCorasick
impl RefUnwindSafe for AhoCorasick
impl Send for AhoCorasick
impl Sync for AhoCorasick
impl Unpin for AhoCorasick
impl UnsafeUnpin for AhoCorasick
impl UnwindSafe for AhoCorasick
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more