[][src]Enum rustacuda::memory::array::ArrayFormat

pub enum ArrayFormat {
    UnsignedInt8,
    UnsignedInt16,
    UnsignedInt32,
    SignedInt8,
    SignedInt16,
    SignedInt32,
    Half,
    Float,
}

Describes the format used for a CUDA Array.

Variants

UnsignedInt8

Unsigned 8-bit integer

UnsignedInt16

Unsigned 16-bit integer

UnsignedInt32

Unsigned 32-bit integer

SignedInt8

Signed 8-bit integer

SignedInt16

Signed 16-bit integer

SignedInt32

Signed 32-bit integer

Half

Half-precision floating point number

Float

Single-precision floating point number

Implementations

impl ArrayFormat[src]

pub fn from_raw(raw: CUarray_format) -> Self[src]

Creates ArrayFormat from the CUDA Driver API enum

pub fn to_raw(self) -> CUarray_format[src]

Converts ArrayFormat to the CUDA Driver API enum

Trait Implementations

impl Clone for ArrayFormat[src]

impl Copy for ArrayFormat[src]

impl Debug for ArrayFormat[src]

impl Eq for ArrayFormat[src]

impl PartialEq<ArrayFormat> for ArrayFormat[src]

impl StructuralEq for ArrayFormat[src]

impl StructuralPartialEq for ArrayFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for ArrayFormat

impl Send for ArrayFormat

impl Sync for ArrayFormat

impl Unpin for ArrayFormat

impl UnwindSafe for ArrayFormat

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.