Enum msr_core::ScalarType
source · [−]#[non_exhaustive]
pub enum ScalarType {
Bool,
I8,
U8,
I16,
U16,
I32,
U32,
F32,
I64,
U64,
F64,
}Expand description
Enumeration of scalar value types
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bool
I8
U8
I16
U16
I32
U32
F32
I64
U64
F64
Implementations
Trait Implementations
sourceimpl From<Type> for ValueType
impl From<Type> for ValueType
sourcefn from(from: ScalarType) -> Self
fn from(from: ScalarType) -> Self
Converts to this type from the input type.
impl Copy for Type
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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