pub(crate) struct Memchr3(u8, u8, u8);
Tuple Fields§
§0: u8
§1: u8
§2: u8
Implementations§
Trait Implementations§
source§impl PrefilterI for Memchr3
impl PrefilterI for Memchr3
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 Memchr3
impl RefUnwindSafe for Memchr3
impl Send for Memchr3
impl Sync for Memchr3
impl Unpin for Memchr3
impl UnwindSafe for Memchr3
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