#[repr(i32)]pub enum DataType {
Show 17 variants
Undefined = 0,
Float = 1,
Uint8 = 2,
Int8 = 3,
Uint16 = 4,
Int16 = 5,
Int32 = 6,
Int64 = 7,
String = 8,
Bool = 9,
Float16 = 10,
Double = 11,
Uint32 = 12,
Uint64 = 13,
Complex64 = 14,
Complex128 = 15,
Bfloat16 = 16,
}
Variants§
Undefined = 0
Float = 1
Basic types.
float
Uint8 = 2
uint8_t
Int8 = 3
int8_t
Uint16 = 4
uint16_t
Int16 = 5
int16_t
Int32 = 6
int32_t
Int64 = 7
int64_t
String = 8
string
Bool = 9
bool
Float16 = 10
IEEE754 half-precision floating-point format (16 bits wide). This format has 1 sign bit, 5 exponent bits, and 10 mantissa bits.
Double = 11
Uint32 = 12
Uint64 = 13
Complex64 = 14
complex with float32 real and imaginary components
Complex128 = 15
complex with float64 real and imaginary components
Bfloat16 = 16
Non-IEEE floating-point format based on IEEE754 single-precision floating-point number truncated to 16 bits. This format has 1 sign bit, 8 exponent bits, and 7 mantissa bits.
Implementations§
Trait Implementations§
Source§impl Ord for DataType
impl Ord for DataType
Source§impl PartialOrd for DataType
impl PartialOrd for DataType
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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