pub enum DenseVectorElementType {
F32,
F16,
I8,
}Expand description
Logical dense element representation. Physical ANN strategy remains a reconstructible implementation choice and is not encoded here.
Variants§
Implementations§
Source§impl DenseVectorElementType
impl DenseVectorElementType
pub const fn width_bytes(self) -> usize
Trait Implementations§
Source§impl Clone for DenseVectorElementType
impl Clone for DenseVectorElementType
impl Copy for DenseVectorElementType
Source§impl Debug for DenseVectorElementType
impl Debug for DenseVectorElementType
Source§impl<'de> Deserialize<'de> for DenseVectorElementType
impl<'de> Deserialize<'de> for DenseVectorElementType
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 DenseVectorElementType
Source§impl Ord for DenseVectorElementType
impl Ord for DenseVectorElementType
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 DenseVectorElementType
impl PartialEq for DenseVectorElementType
Source§impl PartialOrd for DenseVectorElementType
impl PartialOrd for DenseVectorElementType
Source§impl Serialize for DenseVectorElementType
impl Serialize for DenseVectorElementType
impl StructuralPartialEq for DenseVectorElementType
Auto Trait Implementations§
impl Freeze for DenseVectorElementType
impl RefUnwindSafe for DenseVectorElementType
impl Send for DenseVectorElementType
impl Sync for DenseVectorElementType
impl Unpin for DenseVectorElementType
impl UnsafeUnpin for DenseVectorElementType
impl UnwindSafe for DenseVectorElementType
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