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
impl StructuralPartialEq for SampleValue
Auto Trait Implementations§
impl Freeze for SampleValue
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