#[non_exhaustive]#[repr(u32)]pub enum MemoryLocationKind {
Invalid = 0,
Device = 1,
Host = 2,
Numa = 3,
NumaCurrent = 4,
Max = 2_147_483_647,
}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 MemoryLocationKind
impl Clone for MemoryLocationKind
Source§fn clone(&self) -> MemoryLocationKind
fn clone(&self) -> MemoryLocationKind
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 MemoryLocationKind
Source§impl Debug for MemoryLocationKind
impl Debug for MemoryLocationKind
Source§impl Display for MemoryLocationKind
impl Display for MemoryLocationKind
impl Eq for MemoryLocationKind
Source§impl From<CUmemLocationType_enum> for MemoryLocationKind
impl From<CUmemLocationType_enum> for MemoryLocationKind
Source§fn from(value: CUmemLocationType_enum) -> Self
fn from(value: CUmemLocationType_enum) -> Self
Converts to this type from the input type.
Source§impl From<MemoryLocationKind> for u32
impl From<MemoryLocationKind> for u32
Source§fn from(enum_value: MemoryLocationKind) -> Self
fn from(enum_value: MemoryLocationKind) -> Self
Converts to this type from the input type.
Source§impl From<MemoryLocationKind> for CUmemLocationType_enum
impl From<MemoryLocationKind> for CUmemLocationType_enum
Source§fn from(value: MemoryLocationKind) -> Self
fn from(value: MemoryLocationKind) -> Self
Converts to this type from the input type.
Source§impl Hash for MemoryLocationKind
impl Hash for MemoryLocationKind
Source§impl Ord for MemoryLocationKind
impl Ord for MemoryLocationKind
Source§fn cmp(&self, other: &MemoryLocationKind) -> Ordering
fn cmp(&self, other: &MemoryLocationKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MemoryLocationKind
impl PartialEq for MemoryLocationKind
Source§fn eq(&self, other: &MemoryLocationKind) -> bool
fn eq(&self, other: &MemoryLocationKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MemoryLocationKind
impl PartialOrd for MemoryLocationKind
impl StructuralPartialEq for MemoryLocationKind
Source§impl TryFrom<u32> for MemoryLocationKind
impl TryFrom<u32> for MemoryLocationKind
Source§type Error = TryFromPrimitiveError<MemoryLocationKind>
type Error = TryFromPrimitiveError<MemoryLocationKind>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for MemoryLocationKind
impl TryFromPrimitive for MemoryLocationKind
const NAME: &'static str = "MemoryLocationKind"
type Primitive = u32
type Error = TryFromPrimitiveError<MemoryLocationKind>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for MemoryLocationKind
impl RefUnwindSafe for MemoryLocationKind
impl Send for MemoryLocationKind
impl Sync for MemoryLocationKind
impl Unpin for MemoryLocationKind
impl UnsafeUnpin for MemoryLocationKind
impl UnwindSafe for MemoryLocationKind
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