#[non_exhaustive]#[repr(u32)]pub enum CUmem_range_attribute_enum {
CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY = 1,
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION = 2,
CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY = 3,
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION = 4,
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_TYPE = 5,
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_ID = 6,
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_TYPE = 7,
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_ID = 8,
}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_RANGE_ATTRIBUTE_READ_MOSTLY = 1
< Whether the range will mostly be read and only occasionally be written to
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION = 2
< The preferred location of the range
CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY = 3
< Memory range has ::CU_MEM_ADVISE_SET_ACCESSED_BY set for specified device
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION = 4
< The last location to which the range was prefetched
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_TYPE = 5
< The preferred location type of the range
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_ID = 6
< The preferred location id of the range
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_TYPE = 7
< The last location type to which the range was prefetched
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_ID = 8
< The last location id to which the range was prefetched
Trait Implementations§
source§impl Clone for CUmem_range_attribute_enum
impl Clone for CUmem_range_attribute_enum
source§fn clone(&self) -> CUmem_range_attribute_enum
fn clone(&self) -> CUmem_range_attribute_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 CUmem_range_attribute_enum
impl Debug for CUmem_range_attribute_enum
source§impl Hash for CUmem_range_attribute_enum
impl Hash for CUmem_range_attribute_enum
source§impl PartialEq for CUmem_range_attribute_enum
impl PartialEq for CUmem_range_attribute_enum
source§fn eq(&self, other: &CUmem_range_attribute_enum) -> bool
fn eq(&self, other: &CUmem_range_attribute_enum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for CUmem_range_attribute_enum
impl Eq for CUmem_range_attribute_enum
impl StructuralPartialEq for CUmem_range_attribute_enum
Auto Trait Implementations§
impl Freeze for CUmem_range_attribute_enum
impl RefUnwindSafe for CUmem_range_attribute_enum
impl Send for CUmem_range_attribute_enum
impl Sync for CUmem_range_attribute_enum
impl Unpin for CUmem_range_attribute_enum
impl UnwindSafe for CUmem_range_attribute_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