Enum orkhon::prelude::internal::DatumType[]

pub enum DatumType {
    Bool,
    U8,
    U16,
    U32,
    U64,
    I8,
    I16,
    I32,
    I64,
    F16,
    F32,
    F64,
    TDim,
    Blob,
    String,
}

Variants

Bool
U8
U16
U32
U64
I8
I16
I32
I64
F16
F32
F64
TDim
Blob
String

Implementations

impl DatumType

pub fn super_types(&self) -> SmallVec<[DatumType; 4]>

pub fn super_type_for(
    i: impl IntoIterator<Item = impl Borrow<DatumType>>
) -> Option<DatumType>

pub fn common_super_type(&self, rhs: DatumType) -> Option<DatumType>

pub fn is_unsigned(&self) -> bool

pub fn is_signed(&self) -> bool

pub fn is_float(&self) -> bool

pub fn is_copy(&self) -> bool

pub fn integer(signed: bool, size: usize) -> DatumType

pub fn is_integer(&self) -> bool

pub fn size_of(&self) -> usize

pub fn alignment(&self) -> usize

Trait Implementations

impl Clone for DatumType

impl Copy for DatumType

impl Debug for DatumType

impl Eq for DatumType

impl FromStr for DatumType

type Err = Error

The associated error which can be returned from parsing.

impl Hash for DatumType

impl Ord for DatumType

impl PartialEq<DatumType> for DatumType

impl PartialOrd<DatumType> for DatumType

impl StructuralEq for DatumType

impl StructuralPartialEq for DatumType

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.