#[repr(u32)]pub enum DLDataTypeCode {
kDLInt = 0,
kDLUInt = 1,
kDLFloat = 2,
kDLOpaqueHandle = 3,
kDLBfloat = 4,
kDLComplex = 5,
kDLBool = 6,
}Expand description
\brief The type code options DLDataType.
Variants§
kDLInt = 0
\brief signed integer
kDLUInt = 1
\brief unsigned integer
kDLFloat = 2
\brief IEEE floating point
kDLOpaqueHandle = 3
\brief Opaque handle type, reserved for testing purposes. Frameworks need to agree on the handle data type for the exchange to be well-defined.
kDLBfloat = 4
\brief bfloat16
kDLComplex = 5
\brief complex number (C/C++/Python layout: compact struct per complex number)
kDLBool = 6
\brief boolean
Trait Implementations§
Source§impl Clone for DLDataTypeCode
impl Clone for DLDataTypeCode
Source§fn clone(&self) -> DLDataTypeCode
fn clone(&self) -> DLDataTypeCode
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 moreimpl Copy for DLDataTypeCode
Source§impl Debug for DLDataTypeCode
impl Debug for DLDataTypeCode
impl Eq for DLDataTypeCode
Source§impl Hash for DLDataTypeCode
impl Hash for DLDataTypeCode
Source§impl PartialEq for DLDataTypeCode
impl PartialEq for DLDataTypeCode
Source§fn eq(&self, other: &DLDataTypeCode) -> bool
fn eq(&self, other: &DLDataTypeCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DLDataTypeCode
Auto Trait Implementations§
impl Freeze for DLDataTypeCode
impl RefUnwindSafe for DLDataTypeCode
impl Send for DLDataTypeCode
impl Sync for DLDataTypeCode
impl Unpin for DLDataTypeCode
impl UnsafeUnpin for DLDataTypeCode
impl UnwindSafe for DLDataTypeCode
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