Struct hip_sys::hiprt::hipMemLocation
source · #[repr(C)]pub struct hipMemLocation {
pub type_: hipMemLocationType,
pub id: i32,
}Expand description
Specifies a memory location.
To specify a gpu, set type = @p hipMemLocationTypeDevice and set id = the gpu’s device ID
Fields§
§type_: hipMemLocationType< Specifies the location type, which describes the meaning of id
id: i32< Identifier for the provided location type @p hipMemLocationType
Trait Implementations§
source§impl Clone for hipMemLocation
impl Clone for hipMemLocation
source§fn clone(&self) -> hipMemLocation
fn clone(&self) -> hipMemLocation
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 hipMemLocation
impl Debug for hipMemLocation
source§impl Default for hipMemLocation
impl Default for hipMemLocation
source§fn default() -> hipMemLocation
fn default() -> hipMemLocation
Returns the “default value” for a type. Read more
source§impl Hash for hipMemLocation
impl Hash for hipMemLocation
source§impl Ord for hipMemLocation
impl Ord for hipMemLocation
source§fn cmp(&self, other: &hipMemLocation) -> Ordering
fn cmp(&self, other: &hipMemLocation) -> 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<hipMemLocation> for hipMemLocation
impl PartialEq<hipMemLocation> for hipMemLocation
source§fn eq(&self, other: &hipMemLocation) -> bool
fn eq(&self, other: &hipMemLocation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<hipMemLocation> for hipMemLocation
impl PartialOrd<hipMemLocation> for hipMemLocation
source§fn partial_cmp(&self, other: &hipMemLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &hipMemLocation) -> 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 hipMemLocation
impl Eq for hipMemLocation
impl StructuralEq for hipMemLocation
impl StructuralPartialEq for hipMemLocation
Auto Trait Implementations§
impl RefUnwindSafe for hipMemLocation
impl Send for hipMemLocation
impl Sync for hipMemLocation
impl Unpin for hipMemLocation
impl UnwindSafe for hipMemLocation
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