struct RareBytesTwo {
    offsets: RareByteOffsets,
    byte1: u8,
    byte2: u8,
}Expand description
A prefilter for scanning for two “rare” bytes.
Fields§
§offsets: RareByteOffsets§byte1: u8§byte2: u8Trait Implementations§
Source§impl Clone for RareBytesTwo
 
impl Clone for RareBytesTwo
Source§fn clone(&self) -> RareBytesTwo
 
fn clone(&self) -> RareBytesTwo
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 RareBytesTwo
 
impl Debug for RareBytesTwo
Source§impl PrefilterI for RareBytesTwo
 
impl PrefilterI for RareBytesTwo
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 RareBytesTwo
impl RefUnwindSafe for RareBytesTwo
impl Send for RareBytesTwo
impl Sync for RareBytesTwo
impl Unpin for RareBytesTwo
impl UnwindSafe for RareBytesTwo
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