pub enum SparseVectorWeightType {
F32,
F16,
}Expand description
Logical sparse weight representation. Dimension identifiers remain u32 and are never hashed or dictionary-resolved by the engine.
Variants§
Implementations§
Source§impl SparseVectorWeightType
impl SparseVectorWeightType
pub const fn width_bytes(self) -> usize
Trait Implementations§
Source§impl Clone for SparseVectorWeightType
impl Clone for SparseVectorWeightType
impl Copy for SparseVectorWeightType
Source§impl Debug for SparseVectorWeightType
impl Debug for SparseVectorWeightType
Source§impl<'de> Deserialize<'de> for SparseVectorWeightType
impl<'de> Deserialize<'de> for SparseVectorWeightType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SparseVectorWeightType
Source§impl Ord for SparseVectorWeightType
impl Ord for SparseVectorWeightType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SparseVectorWeightType
impl PartialEq for SparseVectorWeightType
Source§impl PartialOrd for SparseVectorWeightType
impl PartialOrd for SparseVectorWeightType
Source§impl Serialize for SparseVectorWeightType
impl Serialize for SparseVectorWeightType
impl StructuralPartialEq for SparseVectorWeightType
Auto Trait Implementations§
impl Freeze for SparseVectorWeightType
impl RefUnwindSafe for SparseVectorWeightType
impl Send for SparseVectorWeightType
impl Sync for SparseVectorWeightType
impl Unpin for SparseVectorWeightType
impl UnsafeUnpin for SparseVectorWeightType
impl UnwindSafe for SparseVectorWeightType
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