pub struct RecallScratch { /* private fields */ }Expand description
Reusable recall scratch — caller-owned, so Memory::recall and
Memory::recall_into take &self: many readers can recall the same
engine at once, each threading its own scratch (the host wraps one per
thread). Carries every buffer a recall mutates — the query-side term/score
vectors, the fusion map, and its own tokenizer and name-normalization
buffer — so a recall never touches the engine’s write-side scratches. Reused
across calls it upholds the zero-alloc invariant.
Opaque: construct with RecallScratch::new (or Default) and pass by
&mut; the fields are engine-internal.
Implementations§
Source§impl RecallScratch
impl RecallScratch
Sourcepub fn new() -> RecallScratch
pub fn new() -> RecallScratch
An empty recall scratch (all buffers grow on first use). One per concurrent reader; reused across that reader’s calls for zero-alloc.
Trait Implementations§
Source§impl Debug for RecallScratch
impl Debug for RecallScratch
Source§impl Default for RecallScratch
impl Default for RecallScratch
Source§fn default() -> RecallScratch
fn default() -> RecallScratch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecallScratch
impl RefUnwindSafe for RecallScratch
impl Send for RecallScratch
impl Sync for RecallScratch
impl Unpin for RecallScratch
impl UnsafeUnpin for RecallScratch
impl UnwindSafe for RecallScratch
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