#[repr(u32)]pub enum DLDataTypeCode {
kDLInt = 0,
kDLUInt = 1,
kDLFloat = 2,
kDLOpaqueHandle = 3,
kDLBfloat = 4,
kDLComplex = 5,
kDLBool = 6,
}Expand description
DLPack data type code enum (DLDataTypeCode).
Variants§
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 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
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 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 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