pub struct ScanDispatchScratch {
pub haystack_bytes: Vec<u8>,
pub hit_bytes: Vec<u8>,
}Expand description
Reusable host-side staging for scan dispatches.
Engines that repeatedly scan many haystacks can keep one scratch value per
worker thread and pass it through *_with_scratch APIs. This removes the
fixed haystack-packing allocation from every dispatch while preserving the
same borrowed-input backend contract.
Fields§
§haystack_bytes: Vec<u8>Packed little-endian u32 haystack bytes.
hit_bytes: Vec<u8>Optional zeroed hit-buffer staging used by single-buffer hit layouts.
Trait Implementations§
Source§impl Debug for ScanDispatchScratch
impl Debug for ScanDispatchScratch
Source§impl Default for ScanDispatchScratch
impl Default for ScanDispatchScratch
Source§fn default() -> ScanDispatchScratch
fn default() -> ScanDispatchScratch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScanDispatchScratch
impl RefUnwindSafe for ScanDispatchScratch
impl Send for ScanDispatchScratch
impl Sync for ScanDispatchScratch
impl Unpin for ScanDispatchScratch
impl UnsafeUnpin for ScanDispatchScratch
impl UnwindSafe for ScanDispatchScratch
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more