pub enum ArrayFormat {
UnsignedInt8,
UnsignedInt16,
UnsignedInt32,
SignedInt8,
SignedInt16,
SignedInt32,
Half,
Float,
}Expand description
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§
Source§impl 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§
Source§impl Clone for ArrayFormat
impl Clone for ArrayFormat
Source§fn clone(&self) -> ArrayFormat
fn clone(&self) -> ArrayFormat
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 ArrayFormat
impl Debug for ArrayFormat
Source§impl PartialEq for ArrayFormat
impl PartialEq for ArrayFormat
impl Copy for ArrayFormat
impl Eq for ArrayFormat
impl StructuralPartialEq for ArrayFormat
Auto Trait Implementations§
impl Freeze for ArrayFormat
impl RefUnwindSafe for ArrayFormat
impl Send for ArrayFormat
impl Sync for ArrayFormat
impl Unpin for ArrayFormat
impl UnwindSafe for ArrayFormat
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