pub struct Lookup { /* private fields */ }Expand description
The result of searching one dictionary for one literal, kept for the life of a query node.
Implementations§
Source§impl Lookup
impl Lookup
Sourcepub fn find(&self, column: &Vector, wanted: &[u8]) -> Option<Result<Found>>
pub fn find(&self, column: &Vector, wanted: &[u8]) -> Option<Result<Found>>
Where wanted sits in column’s dictionary, searched once and remembered.
None means there is nothing to search and the caller should do what it did before: the
column is not a dictionary that shares its values, or the values did not arrive with a
sorted order, or this was built against a different dictionary.
A failed read is returned rather than remembered, so a caller that retries gets the error again rather than a wrong answer cached from a half finished search.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Lookup
impl !RefUnwindSafe for Lookup
impl !UnwindSafe for Lookup
impl Send for Lookup
impl Sync for Lookup
impl Unpin for Lookup
impl UnsafeUnpin for Lookup
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