pub struct DevicePtr(pub *const c_void);Expand description
An opaque immutable device pointer (a host pointer for CPU tensors).
Tuple Fields§
§0: *const c_voidImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for DevicePtr
impl !Sync for DevicePtr
impl Freeze for DevicePtr
impl RefUnwindSafe 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