pub struct QuantizedVector { /* private fields */ }Implementations§
Source§impl QuantizedVector
impl QuantizedVector
pub fn prepare_approximate_query( query: &[f32], rotation_seed: u64, qjl_seed: Option<u64>, ) -> Result<PreparedQuantizedQuery, String>
pub fn snapshot(&self) -> QuantizedVectorSnapshot
pub fn from_snapshot(snapshot: QuantizedVectorSnapshot) -> Result<Self, String>
pub fn decode(&self) -> Result<Vec<f32>, String>
pub fn compressed_bits(&self) -> usize
pub fn compressed_bytes(&self) -> usize
pub fn scalar_dot_rotated_query( &self, rotated_query: &[f32], ) -> Result<f32, String>
pub fn scalar_dot_query(&self, query: &[f32]) -> Result<f32, String>
pub fn approximate_dot_query(&self, query: &[f32]) -> Result<f32, String>
pub fn approximate_dot_prepared_query( &self, query: &PreparedQuantizedQuery, ) -> Result<f32, String>
Trait Implementations§
Source§impl Clone for QuantizedVector
impl Clone for QuantizedVector
Source§fn clone(&self) -> QuantizedVector
fn clone(&self) -> QuantizedVector
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 moreAuto Trait Implementations§
impl Freeze for QuantizedVector
impl RefUnwindSafe for QuantizedVector
impl Send for QuantizedVector
impl Sync for QuantizedVector
impl Unpin for QuantizedVector
impl UnsafeUnpin for QuantizedVector
impl UnwindSafe for QuantizedVector
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