Struct hip_sys::hiprt::hipMemAllocationProp
source · #[repr(C)]pub struct hipMemAllocationProp {
pub type_: hipMemAllocationType,
pub requestedHandleType: hipMemAllocationHandleType,
pub location: hipMemLocation,
pub win32HandleMetaData: *mut c_void,
pub allocFlags: hipMemAllocationProp__bindgen_ty_1,
}Expand description
Memory allocation properties
Fields§
§type_: hipMemAllocationType< Memory allocation type
requestedHandleType: hipMemAllocationHandleType< Requested handle type
location: hipMemLocation< Memory location
win32HandleMetaData: *mut c_void< Metadata for Win32 handles
allocFlags: hipMemAllocationProp__bindgen_ty_1Trait Implementations§
source§impl Clone for hipMemAllocationProp
impl Clone for hipMemAllocationProp
source§fn clone(&self) -> hipMemAllocationProp
fn clone(&self) -> hipMemAllocationProp
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 hipMemAllocationProp
impl Debug for hipMemAllocationProp
source§impl Default for hipMemAllocationProp
impl Default for hipMemAllocationProp
source§fn default() -> hipMemAllocationProp
fn default() -> hipMemAllocationProp
Returns the “default value” for a type. Read more
source§impl Hash for hipMemAllocationProp
impl Hash for hipMemAllocationProp
source§impl Ord for hipMemAllocationProp
impl Ord for hipMemAllocationProp
source§fn cmp(&self, other: &hipMemAllocationProp) -> Ordering
fn cmp(&self, other: &hipMemAllocationProp) -> 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<hipMemAllocationProp> for hipMemAllocationProp
impl PartialEq<hipMemAllocationProp> for hipMemAllocationProp
source§fn eq(&self, other: &hipMemAllocationProp) -> bool
fn eq(&self, other: &hipMemAllocationProp) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<hipMemAllocationProp> for hipMemAllocationProp
impl PartialOrd<hipMemAllocationProp> for hipMemAllocationProp
source§fn partial_cmp(&self, other: &hipMemAllocationProp) -> Option<Ordering>
fn partial_cmp(&self, other: &hipMemAllocationProp) -> 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 hipMemAllocationProp
impl Eq for hipMemAllocationProp
impl StructuralEq for hipMemAllocationProp
impl StructuralPartialEq for hipMemAllocationProp
Auto Trait Implementations§
impl RefUnwindSafe for hipMemAllocationProp
impl !Send for hipMemAllocationProp
impl !Sync for hipMemAllocationProp
impl Unpin for hipMemAllocationProp
impl UnwindSafe for hipMemAllocationProp
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