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 duplicate 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 for CudaApiVersion
impl PartialEq for CudaApiVersion
Source§impl PartialOrd for CudaApiVersion
impl PartialOrd for CudaApiVersion
impl Copy for CudaApiVersion
impl Eq for CudaApiVersion
impl StructuralPartialEq for CudaApiVersion
Auto Trait Implementations§
impl Freeze for CudaApiVersion
impl RefUnwindSafe for CudaApiVersion
impl Send for CudaApiVersion
impl Sync for CudaApiVersion
impl Unpin for CudaApiVersion
impl UnwindSafe for CudaApiVersion
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