#[repr(C)]pub struct cudaPointerAttributes {
pub type_: c_int,
pub device: c_int,
pub device_pointer: *mut c_void,
pub host_pointer: *mut c_void,
}Expand description
cudaPointerAttributes — returned by cudaPointerGetAttributes.
The C struct is 48 bytes. We model the fields directly.
Fields§
§type_: c_intcudaMemoryType — 0=unregistered, 1=host, 2=device, 3=managed.
device: c_intDevice ordinal the allocation lives on.
device_pointer: *mut c_voidDevice-addressable pointer (null for plain host memory).
host_pointer: *mut c_voidHost-addressable pointer (null for plain device memory).
Trait Implementations§
Source§impl Clone for cudaPointerAttributes
impl Clone for cudaPointerAttributes
Source§fn clone(&self) -> cudaPointerAttributes
fn clone(&self) -> cudaPointerAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 cudaPointerAttributes
impl Debug for cudaPointerAttributes
Source§impl Default for cudaPointerAttributes
impl Default for cudaPointerAttributes
impl Copy for cudaPointerAttributes
Auto Trait Implementations§
impl Freeze for cudaPointerAttributes
impl RefUnwindSafe for cudaPointerAttributes
impl !Send for cudaPointerAttributes
impl !Sync for cudaPointerAttributes
impl Unpin for cudaPointerAttributes
impl UnsafeUnpin for cudaPointerAttributes
impl UnwindSafe for cudaPointerAttributes
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