[][src]Struct rustacuda::CudaApiVersion

pub struct CudaApiVersion { /* fields omitted */ }

Struct representing the CUDA API version number.

Implementations

impl CudaApiVersion[src]

pub fn get() -> CudaResult<CudaApiVersion>[src]

Returns the latest CUDA version supported by the CUDA driver.

pub fn major(self) -> i32[src]

Return the major version number - eg. the 9 in version 9.2

pub fn minor(self) -> i32[src]

Return the minor version number - eg. the 2 in version 9.2

Trait Implementations

impl Clone for CudaApiVersion[src]

impl Copy for CudaApiVersion[src]

impl Debug for CudaApiVersion[src]

impl Eq for CudaApiVersion[src]

impl Hash for CudaApiVersion[src]

impl Ord for CudaApiVersion[src]

impl PartialEq<CudaApiVersion> for CudaApiVersion[src]

impl PartialOrd<CudaApiVersion> for CudaApiVersion[src]

impl StructuralEq for CudaApiVersion[src]

impl StructuralPartialEq for CudaApiVersion[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.