Struct aho_corasick::util::prefilter::RareBytesOne
source · struct RareBytesOne {
byte1: u8,
offset: RareByteOffset,
}
Expand description
A prefilter for scanning for a single “rare” byte.
Fields§
§byte1: u8
§offset: RareByteOffset
Trait Implementations§
source§impl Clone for RareBytesOne
impl Clone for RareBytesOne
source§fn clone(&self) -> RareBytesOne
fn clone(&self) -> RareBytesOne
Returns a copy 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 RareBytesOne
impl Debug for RareBytesOne
source§impl PrefilterI for RareBytesOne
impl PrefilterI for RareBytesOne
source§fn find_in(&self, haystack: &[u8], span: Span) -> Candidate
fn find_in(&self, haystack: &[u8], span: Span) -> Candidate
Returns the next possible match candidate. This may yield false
positives, so callers must confirm a match starting at the position
returned. This, however, must never produce false negatives. That is,
this must, at minimum, return the starting position of the next match
in the given haystack after or at the given position.
Auto Trait Implementations§
impl Freeze for RareBytesOne
impl RefUnwindSafe for RareBytesOne
impl Send for RareBytesOne
impl Sync for RareBytesOne
impl Unpin for RareBytesOne
impl UnwindSafe for RareBytesOne
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