pub struct Scratch { /* private fields */ }Expand description
The buffers a search fills, kept rather than built per call.
Two of them: the hits, and one run of bytes with every member’s name in it.
A name is a slice of the second, which is why Hit carries an offset and a
length rather than a Vec<u8> each. A search over ten thousand points is one
buffer that grows once instead of ten thousand small allocations.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scratch
impl RefUnwindSafe for Scratch
impl Send for Scratch
impl Sync for Scratch
impl Unpin for Scratch
impl UnsafeUnpin for Scratch
impl UnwindSafe for Scratch
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