#[repr(u8)]pub enum DType {
F32 = 0,
F64 = 1,
C32 = 2,
C64 = 3,
U8 = 4,
U32 = 5,
U64 = 6,
I8 = 7,
I32 = 8,
I64 = 9,
Undefined = 10,
}
Expand description
Representation of scalar numeric type information as runtime parameter.
Variants§
F32 = 0
Float 32
F64 = 1
Float 64
C32 = 2
Complex 32
C64 = 3
Complex 64
U8 = 4
Unsigned int 8
U32 = 5
Unsigned int 32
U64 = 6
Unsigned int 64
I8 = 7
Int 8
I32 = 8
Int 32
I64 = 9
Int 64
Undefined = 10
Undefined type
Implementations§
Source§impl DType
impl DType
Sourcepub fn is_complex(&self) -> bool
pub fn is_complex(&self) -> bool
Return true if type is complex.
Sourcepub fn complex_type(&self) -> DType
pub fn complex_type(&self) -> DType
Return the associated complex type.
If there is no associated complex type DType::Undefined
is returned.
Trait Implementations§
impl Copy for DType
impl StructuralPartialEq for DType
Auto Trait Implementations§
impl Freeze for DType
impl RefUnwindSafe for DType
impl Send for DType
impl Sync for DType
impl Unpin for DType
impl UnwindSafe for DType
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