pub struct CompressedEntry {
pub file: String,
pub hash: u64,
pub norm: f32,
pub packed_indices: Vec<u8>,
pub residual_norm: Option<f32>,
pub qjl_bits: Option<Vec<u8>>,
}Expand description
A single compressed embedding entry.
Fields§
§file: String§hash: u64§norm: f32§packed_indices: Vec<u8>§residual_norm: Option<f32>Only present for QuantType::Prod.
qjl_bits: Option<Vec<u8>>Only present for QuantType::Prod.
Trait Implementations§
Source§impl Clone for CompressedEntry
impl Clone for CompressedEntry
Source§fn clone(&self) -> CompressedEntry
fn clone(&self) -> CompressedEntry
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 CompressedEntry
impl RefUnwindSafe for CompressedEntry
impl Send for CompressedEntry
impl Sync for CompressedEntry
impl Unpin for CompressedEntry
impl UnsafeUnpin for CompressedEntry
impl UnwindSafe for CompressedEntry
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