Enum nvapi::SystemType
source · [−]#[repr(i32)]
pub enum SystemType {
Unknown,
Laptop,
Desktop,
}
Expand description
Used in NvAPI_GPU_GetSystemType()
Variants
Unknown
Laptop
Desktop
Implementations
sourceimpl 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
sourceimpl Clone for SystemType
impl Clone for SystemType
sourcefn clone(&self) -> SystemType
fn clone(&self) -> SystemType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SystemType
impl Debug for SystemType
sourceimpl<'de> Deserialize<'de> for SystemType
impl<'de> Deserialize<'de> for SystemType
sourcefn 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
sourceimpl Display for SystemType
impl Display for SystemType
sourceimpl Hash for SystemType
impl Hash for SystemType
sourceimpl Into<i32> for SystemType
impl Into<i32> for SystemType
sourceimpl Ord for SystemType
impl Ord for SystemType
sourceimpl PartialEq<SystemType> for SystemType
impl PartialEq<SystemType> for SystemType
sourceimpl PartialOrd<SystemType> for SystemType
impl PartialOrd<SystemType> for SystemType
sourcefn partial_cmp(&self, other: &SystemType) -> Option<Ordering>
fn partial_cmp(&self, other: &SystemType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for SystemType
impl Serialize for SystemType
sourcefn 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 StructuralEq for SystemType
impl StructuralPartialEq for SystemType
Auto Trait Implementations
impl RefUnwindSafe for SystemType
impl Send for SystemType
impl Sync for SystemType
impl Unpin for SystemType
impl UnwindSafe for SystemType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more