pub enum PrimitiveType {
Boolean,
Int {
bits: u8,
},
UInt {
bits: u8,
mode: CastMode,
},
Float16 {
mode: CastMode,
},
Float32 {
mode: CastMode,
},
Float64 {
mode: CastMode,
},
}
Expand description
A primitive type
Variants
Boolean
Boolean, always saturated
Int
Fields
bits: u8
Signed integer, always saturated
UInt
Unsigned integer
Float16
Fields
mode: CastMode
16-bit float
Float32
Fields
mode: CastMode
32-bit float
Float64
Fields
mode: CastMode
64-bit float
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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