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