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