#[repr(u8)]pub enum DataTypeCode {
Int = 0,
UInt = 1,
Float = 2,
BFloat = 4,
Complex = 5,
Bool = 6,
}Expand description
DLPack-compatible scalar category without depending on a runtime header.
Variants§
Int = 0
Signed integer.
UInt = 1
Unsigned integer.
Float = 2
IEEE floating point.
BFloat = 4
Brain floating point.
Complex = 5
Complex floating point.
Bool = 6
Boolean value.
Trait Implementations§
Source§impl Clone for DataTypeCode
impl Clone for DataTypeCode
Source§fn clone(&self) -> DataTypeCode
fn clone(&self) -> DataTypeCode
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 Debug for DataTypeCode
impl Debug for DataTypeCode
Source§impl Hash for DataTypeCode
impl Hash for DataTypeCode
Source§impl PartialEq for DataTypeCode
impl PartialEq for DataTypeCode
Source§fn eq(&self, other: &DataTypeCode) -> bool
fn eq(&self, other: &DataTypeCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DataTypeCode
impl Eq for DataTypeCode
impl StructuralPartialEq for DataTypeCode
Auto Trait Implementations§
impl Freeze for DataTypeCode
impl RefUnwindSafe for DataTypeCode
impl Send for DataTypeCode
impl Sync for DataTypeCode
impl Unpin for DataTypeCode
impl UnsafeUnpin for DataTypeCode
impl UnwindSafe for DataTypeCode
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