Skip to main content

QuantizedCode

Trait QuantizedCode 

Source
pub trait QuantizedCode:
    Clone
    + Send
    + Sync {
    // Required method
    fn size_bytes(&self) -> usize;
}
Expand description

Trait for quantized vector codes

Required Methods§

Source

fn size_bytes(&self) -> usize

Size in bytes of this code

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§