pub enum CusparsePointerMode {
Host,
Device,
}Expand description
How scalar arguments (alpha, beta) are interpreted, mirroring
cusparsePointerMode_t.
In this host shim both modes pass scalars by value; the distinction is retained for API faithfulness and round-trips through the handle so that porting code which sets a pointer mode keeps compiling and behaving sanely.
Variants§
Host
Scalars are taken from host values (the default).
Device
Scalars are nominally device-resident; treated identically here.
Trait Implementations§
Source§impl Clone for CusparsePointerMode
impl Clone for CusparsePointerMode
Source§fn clone(&self) -> CusparsePointerMode
fn clone(&self) -> CusparsePointerMode
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 moreimpl Copy for CusparsePointerMode
Source§impl Debug for CusparsePointerMode
impl Debug for CusparsePointerMode
Source§impl Default for CusparsePointerMode
impl Default for CusparsePointerMode
Source§fn default() -> CusparsePointerMode
fn default() -> CusparsePointerMode
Returns the “default value” for a type. Read more
impl Eq for CusparsePointerMode
Source§impl PartialEq for CusparsePointerMode
impl PartialEq for CusparsePointerMode
Source§fn eq(&self, other: &CusparsePointerMode) -> bool
fn eq(&self, other: &CusparsePointerMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CusparsePointerMode
Auto Trait Implementations§
impl Freeze for CusparsePointerMode
impl RefUnwindSafe for CusparsePointerMode
impl Send for CusparsePointerMode
impl Sync for CusparsePointerMode
impl Unpin for CusparsePointerMode
impl UnsafeUnpin for CusparsePointerMode
impl UnwindSafe for CusparsePointerMode
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