#[repr(u32)]pub enum cusparsePointerMode_t {
CUSPARSE_POINTER_MODE_HOST = 0,
CUSPARSE_POINTER_MODE_DEVICE = 1,
}Expand description
This type indicates whether the scalar values are passed by reference on the host or device. It is important to point out that if several scalar values are passed by reference in the function call, all of them will conform to the same single pointer mode. The pointer mode can be set and retrieved using cusparseSetPointerMode and cusparseGetPointerMode routines, respectively.
Variants§
CUSPARSE_POINTER_MODE_HOST = 0
The scalars are passed by reference on the host.
CUSPARSE_POINTER_MODE_DEVICE = 1
The scalars are passed by reference on the device.
Trait Implementations§
Source§impl Clone for cusparsePointerMode_t
impl Clone for cusparsePointerMode_t
Source§fn clone(&self) -> cusparsePointerMode_t
fn clone(&self) -> cusparsePointerMode_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 cusparsePointerMode_t
impl Debug for cusparsePointerMode_t
Source§impl Hash for cusparsePointerMode_t
impl Hash for cusparsePointerMode_t
Source§impl Ord for cusparsePointerMode_t
impl Ord for cusparsePointerMode_t
Source§fn cmp(&self, other: &cusparsePointerMode_t) -> Ordering
fn cmp(&self, other: &cusparsePointerMode_t) -> Ordering
1.21.0 (const: unstable) · 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 for cusparsePointerMode_t
impl PartialEq for cusparsePointerMode_t
Source§fn eq(&self, other: &cusparsePointerMode_t) -> bool
fn eq(&self, other: &cusparsePointerMode_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for cusparsePointerMode_t
impl PartialOrd for cusparsePointerMode_t
impl Copy for cusparsePointerMode_t
impl Eq for cusparsePointerMode_t
impl StructuralPartialEq for cusparsePointerMode_t
Auto Trait Implementations§
impl Freeze for cusparsePointerMode_t
impl RefUnwindSafe for cusparsePointerMode_t
impl Send for cusparsePointerMode_t
impl Sync for cusparsePointerMode_t
impl Unpin for cusparsePointerMode_t
impl UnsafeUnpin for cusparsePointerMode_t
impl UnwindSafe for cusparsePointerMode_t
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