pub struct Sq8Codec { /* private fields */ }Expand description
Codec wrapper around the existing per-vector SQ8 quantization path.
Implementations§
Trait Implementations§
Source§impl VectorCodec for Sq8Codec
impl VectorCodec for Sq8Codec
Source§fn profile(&self) -> &VectorCodecProfileV1
fn profile(&self) -> &VectorCodecProfileV1
Codec profile identity.
Source§fn encode(&self, vector: &[f32]) -> Result<VectorArtifactV1, MemoryError>
fn encode(&self, vector: &[f32]) -> Result<VectorArtifactV1, MemoryError>
Encode a raw f32 vector into a byte artifact.
Source§fn decode(&self, artifact: &VectorArtifactV1) -> Result<Vec<f32>, MemoryError>
fn decode(&self, artifact: &VectorArtifactV1) -> Result<Vec<f32>, MemoryError>
Decode an artifact back to f32 for reference scoring or differential tests.
Auto Trait Implementations§
impl Freeze for Sq8Codec
impl RefUnwindSafe for Sq8Codec
impl Send for Sq8Codec
impl Sync for Sq8Codec
impl Unpin for Sq8Codec
impl UnsafeUnpin for Sq8Codec
impl UnwindSafe for Sq8Codec
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