pub enum CacheLookupResult {
Hit(Vec<f32>),
Miss,
ModelMismatch,
}Expand description
Result of looking up a cached embedding
Variants§
Hit(Vec<f32>)
Cache hit with the embedding
Miss
Cache miss - need to compute
ModelMismatch
Model dimensions changed - need to recompute
Trait Implementations§
Source§impl Clone for CacheLookupResult
impl Clone for CacheLookupResult
Source§fn clone(&self) -> CacheLookupResult
fn clone(&self) -> CacheLookupResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CacheLookupResult
impl RefUnwindSafe for CacheLookupResult
impl Send for CacheLookupResult
impl Sync for CacheLookupResult
impl Unpin for CacheLookupResult
impl UnwindSafe for CacheLookupResult
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