Struct rustacuda::CudaApiVersion
source · pub struct CudaApiVersion { /* private fields */ }
Expand description
Struct representing the CUDA API version number.
Implementations§
source§impl CudaApiVersion
impl CudaApiVersion
sourcepub fn get() -> CudaResult<CudaApiVersion>
pub fn get() -> CudaResult<CudaApiVersion>
Returns the latest CUDA version supported by the CUDA driver.
Trait Implementations§
source§impl Clone for CudaApiVersion
impl Clone for CudaApiVersion
source§fn clone(&self) -> CudaApiVersion
fn clone(&self) -> CudaApiVersion
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 CudaApiVersion
impl Debug for CudaApiVersion
source§impl Hash for CudaApiVersion
impl Hash for CudaApiVersion
source§impl Ord for CudaApiVersion
impl Ord for CudaApiVersion
source§fn cmp(&self, other: &CudaApiVersion) -> Ordering
fn cmp(&self, other: &CudaApiVersion) -> Ordering
1.21.0 · 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<CudaApiVersion> for CudaApiVersion
impl PartialEq<CudaApiVersion> for CudaApiVersion
source§fn eq(&self, other: &CudaApiVersion) -> bool
fn eq(&self, other: &CudaApiVersion) -> bool
source§impl PartialOrd<CudaApiVersion> for CudaApiVersion
impl PartialOrd<CudaApiVersion> for CudaApiVersion
source§fn partial_cmp(&self, other: &CudaApiVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &CudaApiVersion) -> Option<Ordering>
1.0.0 · source§fn 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