pub enum ArrayFormat {
U8,
U16,
U32,
I8,
I16,
I32,
F32,
F64,
}
Expand description
Describes the format used for a CUDA Array.
Variants
U8
Unsigned 8-bit integer
U16
Unsigned 16-bit integer
U32
Unsigned 32-bit integer
I8
Signed 8-bit integer
I16
Signed 16-bit integer
I32
Signed 32-bit integer
F32
Half-precision floating point number
F64
Single-precision floating point number
Implementations
sourceimpl ArrayFormat
impl ArrayFormat
sourceimpl ArrayFormat
impl ArrayFormat
sourcepub fn from_raw(raw: CUarray_format) -> Self
pub fn from_raw(raw: CUarray_format) -> Self
Creates ArrayFormat from the CUDA Driver API enum
sourcepub fn to_raw(self) -> CUarray_format
pub fn to_raw(self) -> CUarray_format
Converts ArrayFormat to the CUDA Driver API enum
Trait Implementations
sourceimpl Clone for ArrayFormat
impl Clone for ArrayFormat
sourcefn clone(&self) -> ArrayFormat
fn clone(&self) -> ArrayFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ArrayFormat
impl Debug for ArrayFormat
sourceimpl PartialEq<ArrayFormat> for ArrayFormat
impl PartialEq<ArrayFormat> for ArrayFormat
impl Copy for ArrayFormat
impl Eq for ArrayFormat
impl StructuralEq for ArrayFormat
impl StructuralPartialEq for ArrayFormat
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more