#[non_exhaustive]#[repr(u32)]pub enum CUpointer_attribute {
Context = 1,
MemoryType = 2,
DevicePointer = 3,
HostPointer = 4,
IsManaged = 9,
DeviceOrdinal = 10,
}Expand description
Pointer attribute identifiers passed to cuPointerGetAttribute.
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.
Context = 1
Query the CUDA context associated with a pointer.
MemoryType = 2
Query the memory type (host / device / unified) of a pointer.
DevicePointer = 3
Query the device pointer corresponding to a host pointer.
HostPointer = 4
Query the host pointer corresponding to a device pointer.
IsManaged = 9
Query whether the memory is managed (unified).
DeviceOrdinal = 10
Query the device ordinal for the pointer.
Trait Implementations§
Source§impl Clone for CUpointer_attribute
impl Clone for CUpointer_attribute
Source§fn clone(&self) -> CUpointer_attribute
fn clone(&self) -> CUpointer_attribute
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 CUpointer_attribute
impl Debug for CUpointer_attribute
Source§impl Hash for CUpointer_attribute
impl Hash for CUpointer_attribute
Source§impl PartialEq for CUpointer_attribute
impl PartialEq for CUpointer_attribute
impl Copy for CUpointer_attribute
impl Eq for CUpointer_attribute
impl StructuralPartialEq for CUpointer_attribute
Auto Trait Implementations§
impl Freeze for CUpointer_attribute
impl RefUnwindSafe for CUpointer_attribute
impl Send for CUpointer_attribute
impl Sync for CUpointer_attribute
impl Unpin for CUpointer_attribute
impl UnsafeUnpin for CUpointer_attribute
impl UnwindSafe for CUpointer_attribute
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