pub struct CudaVersion {
pub major: u32,
pub minor: u32,
}Expand description
Structured CUDA version with ordering (12.1 < 12.4 < 13.0).
Fields§
§major: u32§minor: u32Trait Implementations§
Source§impl Clone for CudaVersion
impl Clone for CudaVersion
Source§fn clone(&self) -> CudaVersion
fn clone(&self) -> CudaVersion
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 CudaVersion
impl Debug for CudaVersion
Source§impl<'de> Deserialize<'de> for CudaVersion
impl<'de> Deserialize<'de> for CudaVersion
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CudaVersion
impl Display for CudaVersion
Source§impl From<CudaVersion> for String
impl From<CudaVersion> for String
Source§fn from(v: CudaVersion) -> String
fn from(v: CudaVersion) -> String
Converts to this type from the input type.
Source§impl FromStr for CudaVersion
impl FromStr for CudaVersion
Source§impl Ord for CudaVersion
impl Ord for CudaVersion
Source§fn cmp(&self, other: &CudaVersion) -> Ordering
fn cmp(&self, other: &CudaVersion) -> Ordering
1.21.0 (const: unstable) · 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 CudaVersion
impl PartialEq for CudaVersion
Source§fn eq(&self, other: &CudaVersion) -> bool
fn eq(&self, other: &CudaVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CudaVersion
impl PartialOrd for CudaVersion
Source§impl Serialize for CudaVersion
impl Serialize for CudaVersion
Source§impl TryFrom<String> for CudaVersion
impl TryFrom<String> for CudaVersion
impl Eq for CudaVersion
impl StructuralPartialEq for CudaVersion
Auto Trait Implementations§
impl Freeze for CudaVersion
impl RefUnwindSafe for CudaVersion
impl Send for CudaVersion
impl Sync for CudaVersion
impl Unpin for CudaVersion
impl UnsafeUnpin for CudaVersion
impl UnwindSafe for CudaVersion
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