Enum hip_sys::hiprt::hipMemoryType
source · #[non_exhaustive]#[repr(u32)]pub enum hipMemoryType {
hipMemoryTypeHost,
hipMemoryTypeDevice,
hipMemoryTypeArray,
hipMemoryTypeUnified,
hipMemoryTypeManaged,
}Expand description
Memory type (for pointer attributes)
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.
hipMemoryTypeHost
< Memory is physically located on host
hipMemoryTypeDevice
< Memory is physically located on device. (see deviceId for specific < device)
hipMemoryTypeArray
< Array memory, physically located on device. (see deviceId for specific < device)
hipMemoryTypeUnified
< Not used currently
hipMemoryTypeManaged
< Managed memory, automaticallly managed by the unified memory system
Trait Implementations§
source§impl Clone for hipMemoryType
impl Clone for hipMemoryType
source§fn clone(&self) -> hipMemoryType
fn clone(&self) -> hipMemoryType
Returns a copy 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 hipMemoryType
impl Debug for hipMemoryType
source§impl Hash for hipMemoryType
impl Hash for hipMemoryType
source§impl Ord for hipMemoryType
impl Ord for hipMemoryType
source§fn cmp(&self, other: &hipMemoryType) -> Ordering
fn cmp(&self, other: &hipMemoryType) -> Ordering
1.21.0 · 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
source§impl PartialEq<hipMemoryType> for hipMemoryType
impl PartialEq<hipMemoryType> for hipMemoryType
source§fn eq(&self, other: &hipMemoryType) -> bool
fn eq(&self, other: &hipMemoryType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<hipMemoryType> for hipMemoryType
impl PartialOrd<hipMemoryType> for hipMemoryType
source§fn partial_cmp(&self, other: &hipMemoryType) -> Option<Ordering>
fn partial_cmp(&self, other: &hipMemoryType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for hipMemoryType
impl Eq for hipMemoryType
impl StructuralEq for hipMemoryType
impl StructuralPartialEq for hipMemoryType
Auto Trait Implementations§
impl RefUnwindSafe for hipMemoryType
impl Send for hipMemoryType
impl Sync for hipMemoryType
impl Unpin for hipMemoryType
impl UnwindSafe for hipMemoryType
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