#[non_exhaustive]#[repr(u32)]pub enum MemoryRangeAttribute {
ReadMostly = 1,
PreferredLocation = 2,
AccessedBy = 3,
LastPrefetchLocation = 4,
}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 MemoryRangeAttribute
impl Clone for MemoryRangeAttribute
Source§fn clone(&self) -> MemoryRangeAttribute
fn clone(&self) -> MemoryRangeAttribute
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 MemoryRangeAttribute
Source§impl Debug for MemoryRangeAttribute
impl Debug for MemoryRangeAttribute
Source§impl Display for MemoryRangeAttribute
impl Display for MemoryRangeAttribute
impl Eq for MemoryRangeAttribute
Source§impl From<CUmem_range_attribute_enum> for MemoryRangeAttribute
impl From<CUmem_range_attribute_enum> for MemoryRangeAttribute
Source§fn from(value: CUmem_range_attribute) -> Self
fn from(value: CUmem_range_attribute) -> Self
Converts to this type from the input type.
Source§impl From<MemoryRangeAttribute> for u32
impl From<MemoryRangeAttribute> for u32
Source§fn from(enum_value: MemoryRangeAttribute) -> Self
fn from(enum_value: MemoryRangeAttribute) -> Self
Converts to this type from the input type.
Source§impl From<MemoryRangeAttribute> for CUmem_range_attribute
impl From<MemoryRangeAttribute> for CUmem_range_attribute
Source§fn from(value: MemoryRangeAttribute) -> Self
fn from(value: MemoryRangeAttribute) -> Self
Converts to this type from the input type.
Source§impl Hash for MemoryRangeAttribute
impl Hash for MemoryRangeAttribute
Source§impl PartialEq for MemoryRangeAttribute
impl PartialEq for MemoryRangeAttribute
Source§fn eq(&self, other: &MemoryRangeAttribute) -> bool
fn eq(&self, other: &MemoryRangeAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryRangeAttribute
Source§impl TryFrom<u32> for MemoryRangeAttribute
impl TryFrom<u32> for MemoryRangeAttribute
Source§type Error = TryFromPrimitiveError<MemoryRangeAttribute>
type Error = TryFromPrimitiveError<MemoryRangeAttribute>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for MemoryRangeAttribute
impl TryFromPrimitive for MemoryRangeAttribute
const NAME: &'static str = "MemoryRangeAttribute"
type Primitive = u32
type Error = TryFromPrimitiveError<MemoryRangeAttribute>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for MemoryRangeAttribute
impl RefUnwindSafe for MemoryRangeAttribute
impl Send for MemoryRangeAttribute
impl Sync for MemoryRangeAttribute
impl Unpin for MemoryRangeAttribute
impl UnsafeUnpin for MemoryRangeAttribute
impl UnwindSafe for MemoryRangeAttribute
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