Enum dlpackrs::datatype::DataTypeCode
source · [−]#[repr(u8)]
pub enum DataTypeCode {
Int,
UInt,
Float,
OpaqueHandle,
Bfloat,
Complex,
}
Expand description
See DLDataTypeCode
Variants
Int
UInt
Float
OpaqueHandle
Bfloat
Complex
Trait Implementations
sourceimpl Clone for DataTypeCode
impl Clone for DataTypeCode
sourcefn clone(&self) -> DataTypeCode
fn clone(&self) -> DataTypeCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DataTypeCode
impl Debug for DataTypeCode
sourceimpl<'a> From<&'a DataTypeCode> for DLDataTypeCode
impl<'a> From<&'a DataTypeCode> for DLDataTypeCode
sourcefn from(code: &'a DataTypeCode) -> Self
fn from(code: &'a DataTypeCode) -> Self
Converts to this type from the input type.
sourceimpl From<DataTypeCode> for u8
impl From<DataTypeCode> for u8
sourcefn from(code: DataTypeCode) -> Self
fn from(code: DataTypeCode) -> Self
Converts to this type from the input type.
sourceimpl Hash for DataTypeCode
impl Hash for DataTypeCode
sourceimpl PartialEq<DataTypeCode> for DataTypeCode
impl PartialEq<DataTypeCode> for DataTypeCode
sourcefn eq(&self, other: &DataTypeCode) -> bool
fn eq(&self, other: &DataTypeCode) -> bool
sourceimpl TryFrom<u32> for DataTypeCode
impl TryFrom<u32> for DataTypeCode
type Error = UnsupportedDataTypeCode
type Error = UnsupportedDataTypeCode
The type returned in the event of a conversion error.
sourcefn try_from(code: DLDataTypeCode) -> Result<Self, Self::Error>
fn try_from(code: DLDataTypeCode) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for DataTypeCode
impl Eq for DataTypeCode
impl StructuralEq for DataTypeCode
impl StructuralPartialEq for DataTypeCode
Auto Trait Implementations
impl RefUnwindSafe for DataTypeCode
impl Send for DataTypeCode
impl Sync for DataTypeCode
impl Unpin for DataTypeCode
impl UnwindSafe for DataTypeCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more