Struct aho_corasick::util::prefilter::StartBytesTwo
source · struct StartBytesTwo {
byte1: u8,
byte2: u8,
}
Expand description
A prefilter for scanning for two starting bytes.
Fields§
§byte1: u8
§byte2: u8
Trait Implementations§
source§impl Clone for StartBytesTwo
impl Clone for StartBytesTwo
source§fn clone(&self) -> StartBytesTwo
fn clone(&self) -> StartBytesTwo
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 StartBytesTwo
impl Debug for StartBytesTwo
source§impl PrefilterI for StartBytesTwo
impl PrefilterI for StartBytesTwo
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 StartBytesTwo
impl RefUnwindSafe for StartBytesTwo
impl Send for StartBytesTwo
impl Sync for StartBytesTwo
impl Unpin for StartBytesTwo
impl UnwindSafe for StartBytesTwo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)