Skip to main content

DataType

Enum DataType 

Source
#[repr(u32)]
pub enum DataType {
Show 29 variants Undefined = 0, Binary = 1, String = 2, Bool = 3, Int32 = 4, Int64 = 5, Uint32 = 6, Uint64 = 7, Float = 8, Double = 9, VectorBinary32 = 20, VectorBinary64 = 21, VectorFp16 = 22, VectorFp32 = 23, VectorFp64 = 24, VectorInt4 = 25, VectorInt8 = 26, VectorInt16 = 27, SparseVectorFp16 = 30, SparseVectorFp32 = 31, ArrayBinary = 40, ArrayString = 41, ArrayBool = 42, ArrayInt32 = 43, ArrayInt64 = 44, ArrayUint32 = 45, ArrayUint64 = 46, ArrayFloat = 47, ArrayDouble = 48,
}
Expand description

Data type of a field in a zvec collection.

Variants§

§

Undefined = 0

Undefined or unknown type.

§

Binary = 1

Raw binary data (arbitrary bytes).

§

String = 2

UTF-8 encoded string.

§

Bool = 3

Boolean value.

§

Int32 = 4

32-bit signed integer.

§

Int64 = 5

64-bit signed integer.

§

Uint32 = 6

32-bit unsigned integer.

§

Uint64 = 7

64-bit unsigned integer.

§

Float = 8

32-bit floating point (single precision).

§

Double = 9

64-bit floating point (double precision).

§

VectorBinary32 = 20

Dense binary vector with 32-bit packing.

§

VectorBinary64 = 21

Dense binary vector with 64-bit packing.

§

VectorFp16 = 22

Dense vector with 16-bit floating point elements (half precision).

§

VectorFp32 = 23

Dense vector with 32-bit floating point elements (single precision).

§

VectorFp64 = 24

Dense vector with 64-bit floating point elements (double precision).

§

VectorInt4 = 25

Dense vector with 4-bit integer elements (packed, 2 values per byte).

§

VectorInt8 = 26

Dense vector with 8-bit integer elements.

§

VectorInt16 = 27

Dense vector with 16-bit integer elements.

§

SparseVectorFp16 = 30

Sparse vector with 16-bit floating point values.

§

SparseVectorFp32 = 31

Sparse vector with 32-bit floating point values.

§

ArrayBinary = 40

Array of binary data.

§

ArrayString = 41

Array of strings.

§

ArrayBool = 42

Array of booleans.

§

ArrayInt32 = 43

Array of 32-bit signed integers.

§

ArrayInt64 = 44

Array of 64-bit signed integers.

§

ArrayUint32 = 45

Array of 32-bit unsigned integers.

§

ArrayUint64 = 46

Array of 64-bit unsigned integers.

§

ArrayFloat = 47

Array of 32-bit floating point values.

§

ArrayDouble = 48

Array of 64-bit floating point values.

Trait Implementations§

Source§

impl Clone for DataType

Source§

fn clone(&self) -> DataType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DataType

Source§

impl Debug for DataType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for DataType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for DataType

Source§

impl From<DataType> for u32

Source§

fn from(dt: DataType) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for DataType

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for DataType

Source§

fn eq(&self, other: &DataType) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DataType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.