Struct fil_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
This method tests for
self
and other
values to be equal, and is used
by ==
.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 moreimpl Copy for CudaApiVersion
impl Eq for CudaApiVersion
impl StructuralEq for CudaApiVersion
impl StructuralPartialEq for CudaApiVersion
Auto Trait Implementations§
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