#[non_exhaustive]#[repr(u32)]pub enum CUmemorytype {
Host = 1,
Device = 2,
Array = 3,
Unified = 4,
}Expand description
Memory type identifiers returned by pointer attribute queries.
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.
Host = 1
Host (system) memory.
Device = 2
Device (GPU) memory.
Array = 3
Array memory.
Unified = 4
Unified (managed) memory.
Trait Implementations§
Source§impl Clone for CUmemorytype
impl Clone for CUmemorytype
Source§fn clone(&self) -> CUmemorytype
fn clone(&self) -> CUmemorytype
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CUmemorytype
impl Debug for CUmemorytype
Source§impl Hash for CUmemorytype
impl Hash for CUmemorytype
Source§impl PartialEq for CUmemorytype
impl PartialEq for CUmemorytype
impl Copy for CUmemorytype
impl Eq for CUmemorytype
impl StructuralPartialEq for CUmemorytype
Auto Trait Implementations§
impl Freeze for CUmemorytype
impl RefUnwindSafe for CUmemorytype
impl Send for CUmemorytype
impl Sync for CUmemorytype
impl Unpin for CUmemorytype
impl UnsafeUnpin for CUmemorytype
impl UnwindSafe for CUmemorytype
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