pub struct QuantizedVector {
pub euclidean: Vec<i8>,
pub euclidean_scale: f32,
pub hyperbolic: Vec<i8>,
pub hyperbolic_scale: f32,
pub spherical: Vec<i8>,
pub spherical_scale: f32,
}Expand description
Quantized vector representation
Fields§
§euclidean: Vec<i8>Quantized Euclidean component
euclidean_scale: f32Euclidean scale factor
hyperbolic: Vec<i8>Quantized Hyperbolic component
hyperbolic_scale: f32Hyperbolic scale factor
spherical: Vec<i8>Quantized Spherical component
spherical_scale: f32Spherical scale factor
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 · 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 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