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