#[repr(i32)]pub enum SystemType {
Unknown = 0,
Laptop = 1,
Desktop = 2,
}Expand description
Used in NvAPI_GPU_GetSystemType()
Variants§
Implementations§
Source§impl SystemType
impl SystemType
pub fn from_raw(raw: NV_SYSTEM_TYPE) -> Result<Self, ArgumentRangeError>
pub fn raw(&self) -> NV_SYSTEM_TYPE
pub fn values() -> Cloned<Iter<'static, Self>>
Trait Implementations§
Source§impl Clone for SystemType
impl Clone for SystemType
Source§fn clone(&self) -> SystemType
fn clone(&self) -> SystemType
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 SystemType
impl Debug for SystemType
Source§impl<'de> Deserialize<'de> for SystemType
impl<'de> Deserialize<'de> for SystemType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SystemType
impl Display for SystemType
Source§impl Hash for SystemType
impl Hash for SystemType
Source§impl Into<i32> for SystemType
impl Into<i32> for SystemType
Source§fn into(self) -> NV_SYSTEM_TYPE
fn into(self) -> NV_SYSTEM_TYPE
Converts this type into the (usually inferred) input type.
Source§impl Ord for SystemType
impl Ord for SystemType
Source§fn cmp(&self, other: &SystemType) -> Ordering
fn cmp(&self, other: &SystemType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SystemType
impl PartialEq for SystemType
Source§impl PartialOrd for SystemType
impl PartialOrd for SystemType
Source§impl Serialize for SystemType
impl Serialize for SystemType
impl Copy for SystemType
impl Eq for SystemType
impl StructuralPartialEq for SystemType
Auto Trait Implementations§
impl Freeze for SystemType
impl RefUnwindSafe for SystemType
impl Send for SystemType
impl Sync for SystemType
impl Unpin for SystemType
impl UnwindSafe for SystemType
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