#[repr(C)]pub enum NumericType {
Integer {
signed: bool,
},
Float,
}Expand description
Describes numeric types (integer/float)
Numeric types have associated Scalar Def, which includes additional information for the
given type.
Variants§
Integer
Integer (u16, i8, usize, etc.)
Number of bits can be found by checking the size of the shape’s layout.
Float
Floating-point (f32, f64)
Number of bits can be found by checking the size of the shape’s layout.
Trait Implementations§
Source§impl Clone for NumericType
impl Clone for NumericType
Source§fn clone(&self) -> NumericType
fn clone(&self) -> NumericType
Returns a duplicate of the value. Read more
1.0.0 · 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 NumericType
impl Debug for NumericType
impl Copy for NumericType
Auto Trait Implementations§
impl Freeze for NumericType
impl RefUnwindSafe for NumericType
impl Send for NumericType
impl Sync for NumericType
impl Unpin for NumericType
impl UnwindSafe for NumericType
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