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