pub struct QuerySketch { /* private fields */ }Expand description
A floating-point query-side sketch used for asymmetric scoring.
Implementations§
Source§impl QuerySketch
impl QuerySketch
Sourcepub fn input_norm(&self) -> f32
pub fn input_norm(&self) -> f32
Returns the L2 norm of the original unnormalized query embedding.
Sourcepub fn sketch_dim(&self) -> usize
pub fn sketch_dim(&self) -> usize
Returns the sketch dimension.
Trait Implementations§
Source§impl Clone for QuerySketch
impl Clone for QuerySketch
Source§fn clone(&self) -> QuerySketch
fn clone(&self) -> QuerySketch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QuerySketch
impl Debug for QuerySketch
Source§impl PartialEq for QuerySketch
impl PartialEq for QuerySketch
Source§fn eq(&self, other: &QuerySketch) -> bool
fn eq(&self, other: &QuerySketch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuerySketch
Auto Trait Implementations§
impl Freeze for QuerySketch
impl RefUnwindSafe for QuerySketch
impl Send for QuerySketch
impl Sync for QuerySketch
impl Unpin for QuerySketch
impl UnsafeUnpin for QuerySketch
impl UnwindSafe for QuerySketch
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