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