#[repr(transparent)]pub struct cudaMemAllocationType(pub c_uint);Expand description
Defines the allocation types available.
Tuple Fields§
§0: c_uintImplementations§
Source§impl cudaMemAllocationType
impl cudaMemAllocationType
Sourcepub const cudaMemAllocationTypeInvalid: cudaMemAllocationType
pub const cudaMemAllocationTypeInvalid: cudaMemAllocationType
No valid native memory allocation type is selected.
Sourcepub const cudaMemAllocationTypePinned: cudaMemAllocationType
pub const cudaMemAllocationTypePinned: cudaMemAllocationType
This allocation type is ‘pinned’, i.e.
cannot migrate from its current location while the application is actively using it.
Sourcepub const cudaMemAllocationTypeManaged: cudaMemAllocationType
pub const cudaMemAllocationTypeManaged: cudaMemAllocationType
This allocation type is managed memory.
Sourcepub const cudaMemAllocationTypeMax: cudaMemAllocationType
pub const cudaMemAllocationTypeMax: cudaMemAllocationType
ABI sentinel that forces a 32-bit C allocation-type enum representation.
Trait Implementations§
Source§impl Clone for cudaMemAllocationType
impl Clone for cudaMemAllocationType
impl Copy for cudaMemAllocationType
Source§impl Debug for cudaMemAllocationType
impl Debug for cudaMemAllocationType
impl Eq for cudaMemAllocationType
Source§impl Hash for cudaMemAllocationType
impl Hash for cudaMemAllocationType
Source§impl Ord for cudaMemAllocationType
impl Ord for cudaMemAllocationType
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 cudaMemAllocationType
impl PartialEq for cudaMemAllocationType
Source§impl PartialOrd for cudaMemAllocationType
impl PartialOrd for cudaMemAllocationType
impl StructuralPartialEq for cudaMemAllocationType
Auto Trait Implementations§
impl Forget for cudaMemAllocationType
impl Freeze for cudaMemAllocationType
impl Move for cudaMemAllocationType
impl RefUnwindSafe for cudaMemAllocationType
impl Send for cudaMemAllocationType
impl Sync for cudaMemAllocationType
impl Unpin for cudaMemAllocationType
impl UnsafeUnpin for cudaMemAllocationType
impl UnwindSafe for cudaMemAllocationType
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