#[repr(u32)]pub enum hipMemAllocationType {
hipMemAllocationTypeInvalid = 0,
hipMemAllocationTypePinned = 1,
hipMemAllocationTypeMax = 2_147_483_647,
}Expand description
@brief Defines the allocation types @enum @ingroup Enumerations
Variants§
hipMemAllocationTypeInvalid = 0
hipMemAllocationTypePinned = 1
This allocation type is ‘pinned’, i.e. cannot migrate from its current location while the application is actively using it
hipMemAllocationTypeMax = 2_147_483_647
This allocation type is ‘pinned’, i.e. cannot migrate from its current location while the application is actively using it
Trait Implementations§
Source§impl Clone for hipMemAllocationType
impl Clone for hipMemAllocationType
Source§fn clone(&self) -> hipMemAllocationType
fn clone(&self) -> hipMemAllocationType
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 hipMemAllocationType
impl Debug for hipMemAllocationType
Source§impl Hash for hipMemAllocationType
impl Hash for hipMemAllocationType
Source§impl PartialEq for hipMemAllocationType
impl PartialEq for hipMemAllocationType
impl Copy for hipMemAllocationType
impl Eq for hipMemAllocationType
impl StructuralPartialEq for hipMemAllocationType
Auto Trait Implementations§
impl Freeze for hipMemAllocationType
impl RefUnwindSafe for hipMemAllocationType
impl Send for hipMemAllocationType
impl Sync for hipMemAllocationType
impl Unpin for hipMemAllocationType
impl UnwindSafe for hipMemAllocationType
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