[][src]Enum tract_data::prelude::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[src]

pub fn super_types(&self) -> TVec<DatumType>[src]

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

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

pub fn is_unsigned(&self) -> bool[src]

pub fn is_signed(&self) -> bool[src]

pub fn is_float(&self) -> bool[src]

pub fn is_copy(&self) -> bool[src]

pub fn integer(signed: bool, size: usize) -> Self[src]

pub fn is_integer(&self) -> bool[src]

pub fn size_of(&self) -> usize[src]

pub fn alignment(&self) -> usize[src]

Trait Implementations

impl Clone for DatumType[src]

impl Copy for DatumType[src]

impl Debug for DatumType[src]

impl Eq for DatumType[src]

impl FromStr for DatumType[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for DatumType[src]

impl Ord for DatumType[src]

impl PartialEq<DatumType> for DatumType[src]

impl PartialOrd<DatumType> for DatumType[src]

impl StructuralEq for DatumType[src]

impl StructuralPartialEq for DatumType[src]

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> 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.