pub enum DType {
Null,
Bool(Nullability),
Primitive(PType, Nullability),
Utf8(Nullability),
Binary(Nullability),
Struct(StructDType, Nullability),
List(Arc<DType>, Nullability),
Extension(ExtDType, Nullability),
}Expand description
Array logical types.
Vortex arrays preserve a single logical type, while the encodings allow for multiple physical types to encode that type.
Variants§
Null
Bool(Nullability)
Primitive(PType, Nullability)
Utf8(Nullability)
Binary(Nullability)
Struct(StructDType, Nullability)
List(Arc<DType>, Nullability)
Extension(ExtDType, Nullability)
Implementations§
source§impl DType
impl DType
pub const BYTES: Self = _
pub fn nullability(&self) -> Nullability
pub fn is_nullable(&self) -> bool
pub fn as_nonnullable(&self) -> Self
pub fn as_nullable(&self) -> Self
pub fn with_nullability(&self, nullability: Nullability) -> Self
pub fn eq_ignore_nullability(&self, other: &Self) -> bool
pub fn is_struct(&self) -> bool
pub fn is_unsigned_int(&self) -> bool
pub fn is_signed_int(&self) -> bool
pub fn is_int(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_boolean(&self) -> bool
pub fn as_struct(&self) -> Option<&StructDType>
Trait Implementations§
source§impl PartialOrd for DType
impl PartialOrd for DType
source§impl TryFrom<&DType> for PType
impl TryFrom<&DType> for PType
source§type Error = VortexError
type Error = VortexError
The type returned in the event of a conversion error.
source§fn try_from(value: &DType) -> VortexResult<Self>
fn try_from(value: &DType) -> VortexResult<Self>
Performs the conversion.
impl Eq for DType
impl StructuralPartialEq for DType
Auto Trait Implementations§
impl Freeze for DType
impl RefUnwindSafe for DType
impl Send for DType
impl Sync for DType
impl Unpin for DType
impl UnwindSafe for DType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more