#[repr(u32)]pub enum NvLinkVersion {
Invalid = 0,
V1_0 = 1,
V2_0 = 2,
V2_2 = 3,
V3_0 = 4,
V3_1 = 5,
V4_0 = 6,
V5_0 = 7,
}Variants§
Trait Implementations§
Source§impl Clone for NvLinkVersion
impl Clone for NvLinkVersion
Source§fn clone(&self) -> NvLinkVersion
fn clone(&self) -> NvLinkVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NvLinkVersion
impl Debug for NvLinkVersion
Source§impl From<NvLinkVersion> for nvmlNvlinkVersion_t
impl From<NvLinkVersion> for nvmlNvlinkVersion_t
Source§fn from(value: NvLinkVersion) -> Self
fn from(value: NvLinkVersion) -> Self
Converts to this type from the input type.
Source§impl From<NvLinkVersion> for u32
impl From<NvLinkVersion> for u32
Source§fn from(enum_value: NvLinkVersion) -> Self
fn from(enum_value: NvLinkVersion) -> Self
Converts to this type from the input type.
Source§impl From<nvmlNvlinkVersion_enum> for NvLinkVersion
impl From<nvmlNvlinkVersion_enum> for NvLinkVersion
Source§fn from(value: nvmlNvlinkVersion_t) -> Self
fn from(value: nvmlNvlinkVersion_t) -> Self
Converts to this type from the input type.
Source§impl Hash for NvLinkVersion
impl Hash for NvLinkVersion
Source§impl PartialEq for NvLinkVersion
impl PartialEq for NvLinkVersion
Source§fn eq(&self, other: &NvLinkVersion) -> bool
fn eq(&self, other: &NvLinkVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for NvLinkVersion
impl TryFrom<u32> for NvLinkVersion
Source§type Error = TryFromPrimitiveError<NvLinkVersion>
type Error = TryFromPrimitiveError<NvLinkVersion>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for NvLinkVersion
impl TryFromPrimitive for NvLinkVersion
const NAME: &'static str = "NvLinkVersion"
type Primitive = u32
type Error = TryFromPrimitiveError<NvLinkVersion>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for NvLinkVersion
impl Eq for NvLinkVersion
impl StructuralPartialEq for NvLinkVersion
Auto Trait Implementations§
impl Freeze for NvLinkVersion
impl RefUnwindSafe for NvLinkVersion
impl Send for NvLinkVersion
impl Sync for NvLinkVersion
impl Unpin for NvLinkVersion
impl UnsafeUnpin for NvLinkVersion
impl UnwindSafe for NvLinkVersion
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