#[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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ExternType for DLDataTypeCode
impl ExternType for DLDataTypeCode
Source§impl Hash for DLDataTypeCode
impl Hash for DLDataTypeCode
Source§impl PartialEq for DLDataTypeCode
impl PartialEq for DLDataTypeCode
impl Eq for DLDataTypeCode
impl StructuralPartialEq for DLDataTypeCode
impl UniquePtrTarget for DLDataTypeCode
impl VectorElement for DLDataTypeCode
impl WeakPtrTarget 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 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