#[non_exhaustive]#[repr(u16)]pub enum QuantMode {
Binary = 0,
RaBitQ = 1,
Bbq = 2,
TernaryPacked = 3,
TernarySimd = 4,
TurboQuant4b = 5,
Sq8 = 6,
Pq = 7,
Itq3S = 8,
PolarQuant = 9,
}Expand description
Quantization mode discriminator stored in the header.
Values are stable on disk — never reorder, only append.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Binary = 0
RaBitQ = 1
Bbq = 2
TernaryPacked = 3
5 trits/byte cold layout, 1.6 bpw.
TernarySimd = 4
2 bpw expanded for SIMD hot path.
TurboQuant4b = 5
Sq8 = 6
Pq = 7
Itq3S = 8
Reserved discriminant for ITQ3_S (Interleaved Ternary Quantization).
PolarQuant = 9
Reserved discriminant for PolarQuant (Cartesian→polar 0.5 bpw).
Trait Implementations§
impl Copy for QuantMode
impl Eq for QuantMode
impl StructuralPartialEq for QuantMode
Auto Trait Implementations§
impl Freeze for QuantMode
impl RefUnwindSafe for QuantMode
impl Send for QuantMode
impl Sync for QuantMode
impl Unpin for QuantMode
impl UnsafeUnpin for QuantMode
impl UnwindSafe for QuantMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.