#[repr(u32)]pub enum DriverModel {
Wddm = 0,
Wdm = 1,
Mcdm = 2,
}Variants§
Trait Implementations§
Source§impl Clone for DriverModel
impl Clone for DriverModel
Source§fn clone(&self) -> DriverModel
fn clone(&self) -> DriverModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DriverModel
impl Debug for DriverModel
Source§impl From<DriverModel> for nvmlDriverModel_t
impl From<DriverModel> for nvmlDriverModel_t
Source§fn from(value: DriverModel) -> Self
fn from(value: DriverModel) -> Self
Converts to this type from the input type.
Source§impl From<DriverModel> for u32
impl From<DriverModel> for u32
Source§fn from(enum_value: DriverModel) -> Self
fn from(enum_value: DriverModel) -> Self
Converts to this type from the input type.
Source§impl From<nvmlDriverModel_enum> for DriverModel
impl From<nvmlDriverModel_enum> for DriverModel
Source§fn from(value: nvmlDriverModel_t) -> Self
fn from(value: nvmlDriverModel_t) -> Self
Converts to this type from the input type.
Source§impl Hash for DriverModel
impl Hash for DriverModel
Source§impl PartialEq for DriverModel
impl PartialEq for DriverModel
Source§fn eq(&self, other: &DriverModel) -> bool
fn eq(&self, other: &DriverModel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for DriverModel
impl TryFrom<u32> for DriverModel
Source§type Error = TryFromPrimitiveError<DriverModel>
type Error = TryFromPrimitiveError<DriverModel>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DriverModel
impl TryFromPrimitive for DriverModel
const NAME: &'static str = "DriverModel"
type Primitive = u32
type Error = TryFromPrimitiveError<DriverModel>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for DriverModel
impl Eq for DriverModel
impl StructuralPartialEq for DriverModel
Auto Trait Implementations§
impl Freeze for DriverModel
impl RefUnwindSafe for DriverModel
impl Send for DriverModel
impl Sync for DriverModel
impl Unpin for DriverModel
impl UnsafeUnpin for DriverModel
impl UnwindSafe for DriverModel
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