#[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: i32) -> Result<SystemType, ArgumentRangeError>
pub fn raw(&self) -> i32
pub fn values() -> Cloned<Iter<'static, SystemType>>
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<SystemType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemType, <__D as Deserializer<'de>>::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§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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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