#[non_exhaustive]#[repr(u32)]pub enum PointerMode {
Host = 0,
Device = 1,
}Expand description
Indicates whether scalar values are read from host memory or device memory.
If an operation uses several scalar values, all of them use the same pointer mode.
The pointer mode can be set and retrieved with Context::set_scalar_pointer_mode and Context::scalar_pointer_mode, respectively.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for PointerMode
impl Clone for PointerMode
Source§fn clone(&self) -> PointerMode
fn clone(&self) -> PointerMode
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 PointerMode
Source§impl Debug for PointerMode
impl Debug for PointerMode
Source§impl Display for PointerMode
impl Display for PointerMode
impl Eq for PointerMode
Source§impl From<PointerMode> for u32
impl From<PointerMode> for u32
Source§fn from(enum_value: PointerMode) -> Self
fn from(enum_value: PointerMode) -> Self
Converts to this type from the input type.
Source§impl From<PointerMode> for cusparsePointerMode_t
impl From<PointerMode> for cusparsePointerMode_t
Source§fn from(value: PointerMode) -> Self
fn from(value: PointerMode) -> Self
Converts to this type from the input type.
Source§impl From<cusparsePointerMode_t> for PointerMode
impl From<cusparsePointerMode_t> for PointerMode
Source§fn from(value: cusparsePointerMode_t) -> Self
fn from(value: cusparsePointerMode_t) -> Self
Converts to this type from the input type.
Source§impl Hash for PointerMode
impl Hash for PointerMode
Source§impl PartialEq for PointerMode
impl PartialEq for PointerMode
Source§fn eq(&self, other: &PointerMode) -> bool
fn eq(&self, other: &PointerMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PointerMode
Source§impl TryFrom<u32> for PointerMode
impl TryFrom<u32> for PointerMode
Source§type Error = TryFromPrimitiveError<PointerMode>
type Error = TryFromPrimitiveError<PointerMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PointerMode
impl TryFromPrimitive for PointerMode
const NAME: &'static str = "PointerMode"
type Primitive = u32
type Error = TryFromPrimitiveError<PointerMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for PointerMode
impl RefUnwindSafe for PointerMode
impl Send for PointerMode
impl Sync for PointerMode
impl Unpin for PointerMode
impl UnsafeUnpin for PointerMode
impl UnwindSafe for PointerMode
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