pub enum VectorValues {
Float32(Vec<f32>),
Float64(Vec<f64>),
Int8(Vec<i8>),
Binary(Vec<u8>),
}Expand description
Decoded VECTOR element values, one variant per storage format.
The variant determines both the wire encoding and the Python array.array
typecode the shim layer materializes (f/d/b/B).
Variants§
Float32(Vec<f32>)
FLOAT32 elements (array.array('f')).
Float64(Vec<f64>)
FLOAT64 elements (array.array('d')).
Int8(Vec<i8>)
INT8 elements (array.array('b')).
Binary(Vec<u8>)
BINARY elements: one byte packs 8 dimensions (array.array('B')).
Implementations§
Trait Implementations§
Source§impl Clone for VectorValues
impl Clone for VectorValues
Source§fn clone(&self) -> VectorValues
fn clone(&self) -> VectorValues
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VectorValues
impl Debug for VectorValues
Source§impl PartialEq for VectorValues
impl PartialEq for VectorValues
Source§fn eq(&self, other: &VectorValues) -> bool
fn eq(&self, other: &VectorValues) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VectorValues
Auto Trait Implementations§
impl Freeze for VectorValues
impl RefUnwindSafe for VectorValues
impl Send for VectorValues
impl Sync for VectorValues
impl Unpin for VectorValues
impl UnsafeUnpin for VectorValues
impl UnwindSafe for VectorValues
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