#[repr(transparent)]pub struct CUmemAllocationType_enum(pub c_uint);Expand description
Defines the allocation types available.
Tuple Fields§
§0: c_uintImplementations§
Source§impl CUmemAllocationType_enum
impl CUmemAllocationType_enum
Sourcepub const CU_MEM_ALLOCATION_TYPE_INVALID: CUmemAllocationType_enum
pub const CU_MEM_ALLOCATION_TYPE_INVALID: CUmemAllocationType_enum
No valid native memory allocation type is selected.
Sourcepub const CU_MEM_ALLOCATION_TYPE_PINNED: CUmemAllocationType_enum
pub const CU_MEM_ALLOCATION_TYPE_PINNED: CUmemAllocationType_enum
This allocation type is ‘pinned’, i.e.
cannot migrate from its current location while the application is actively using it.
Sourcepub const CU_MEM_ALLOCATION_TYPE_MANAGED: CUmemAllocationType_enum
pub const CU_MEM_ALLOCATION_TYPE_MANAGED: CUmemAllocationType_enum
This allocation type is managed memory.
Sourcepub const CU_MEM_ALLOCATION_TYPE_MAX: CUmemAllocationType_enum
pub const CU_MEM_ALLOCATION_TYPE_MAX: CUmemAllocationType_enum
ABI sentinel that forces a 32-bit C allocation-type enum representation.
Trait Implementations§
Source§impl Clone for CUmemAllocationType_enum
impl Clone for CUmemAllocationType_enum
impl Copy for CUmemAllocationType_enum
Source§impl Debug for CUmemAllocationType_enum
impl Debug for CUmemAllocationType_enum
impl Eq for CUmemAllocationType_enum
Source§impl Hash for CUmemAllocationType_enum
impl Hash for CUmemAllocationType_enum
Source§impl Ord for CUmemAllocationType_enum
impl Ord for CUmemAllocationType_enum
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CUmemAllocationType_enum
impl PartialEq for CUmemAllocationType_enum
Source§impl PartialOrd for CUmemAllocationType_enum
impl PartialOrd for CUmemAllocationType_enum
impl StructuralPartialEq for CUmemAllocationType_enum
Auto Trait Implementations§
impl Forget for CUmemAllocationType_enum
impl Freeze for CUmemAllocationType_enum
impl Move for CUmemAllocationType_enum
impl RefUnwindSafe for CUmemAllocationType_enum
impl Send for CUmemAllocationType_enum
impl Sync for CUmemAllocationType_enum
impl Unpin for CUmemAllocationType_enum
impl UnsafeUnpin for CUmemAllocationType_enum
impl UnwindSafe for CUmemAllocationType_enum
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