#[non_exhaustive]#[repr(u32)]pub enum CUmemLocationType_enum {
CU_MEM_LOCATION_TYPE_INVALID = 0,
CU_MEM_LOCATION_TYPE_DEVICE = 1,
CU_MEM_LOCATION_TYPE_HOST = 2,
CU_MEM_LOCATION_TYPE_HOST_NUMA = 3,
CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT = 4,
CU_MEM_LOCATION_TYPE_MAX = 2_147_483_647,
}Expand description
Specifies the type of location
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.
CU_MEM_LOCATION_TYPE_INVALID = 0
CU_MEM_LOCATION_TYPE_DEVICE = 1
< Location is a device location, thus id is a device ordinal
CU_MEM_LOCATION_TYPE_HOST = 2
< Location is host, id is ignored
CU_MEM_LOCATION_TYPE_HOST_NUMA = 3
< Location is a host NUMA node, thus id is a host NUMA node id
CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT = 4
< Location is a host NUMA node of the current thread, id is ignored
CU_MEM_LOCATION_TYPE_MAX = 2_147_483_647
Trait Implementations§
source§impl Clone for CUmemLocationType_enum
impl Clone for CUmemLocationType_enum
source§fn clone(&self) -> CUmemLocationType_enum
fn clone(&self) -> CUmemLocationType_enum
Returns a copy 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 CUmemLocationType_enum
impl Debug for CUmemLocationType_enum
source§impl Hash for CUmemLocationType_enum
impl Hash for CUmemLocationType_enum
source§impl PartialEq for CUmemLocationType_enum
impl PartialEq for CUmemLocationType_enum
source§fn eq(&self, other: &CUmemLocationType_enum) -> bool
fn eq(&self, other: &CUmemLocationType_enum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for CUmemLocationType_enum
impl Eq for CUmemLocationType_enum
impl StructuralPartialEq for CUmemLocationType_enum
Auto Trait Implementations§
impl RefUnwindSafe for CUmemLocationType_enum
impl Send for CUmemLocationType_enum
impl Sync for CUmemLocationType_enum
impl Unpin for CUmemLocationType_enum
impl UnwindSafe for CUmemLocationType_enum
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