pub struct DevicePtr(pub u64);Expand description
Opaque CUDA device-memory address (mirrors CUdeviceptr).
This is a plain u64 wrapped in a newtype to prevent accidental
dereferencing from host code.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
impl Copy for DevicePtr
impl Eq for DevicePtr
impl StructuralPartialEq for DevicePtr
Auto Trait Implementations§
impl Freeze for DevicePtr
impl RefUnwindSafe for DevicePtr
impl Send for DevicePtr
impl Sync for DevicePtr
impl Unpin for DevicePtr
impl UnsafeUnpin for DevicePtr
impl UnwindSafe for DevicePtr
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