Enum nvml_wrapper::enums::device::SampleValue
source · pub enum SampleValue {
F64(f64),
U32(u32),
U64(u64),
I64(i64),
}
Expand description
Represents different types of sample values.
Variants§
Implementations§
source§impl SampleValue
impl SampleValue
pub fn from_tag_and_union(tag: &SampleValueType, union: nvmlValue_t) -> Self
Trait Implementations§
source§impl Clone for SampleValue
impl Clone for SampleValue
source§fn clone(&self) -> SampleValue
fn clone(&self) -> SampleValue
Returns a copy 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 SampleValue
impl Debug for SampleValue
source§impl PartialEq for SampleValue
impl PartialEq for SampleValue
source§fn eq(&self, other: &SampleValue) -> bool
fn eq(&self, other: &SampleValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SampleValue
Auto Trait Implementations§
impl RefUnwindSafe for SampleValue
impl Send for SampleValue
impl Sync for SampleValue
impl Unpin for SampleValue
impl UnwindSafe for SampleValue
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