pub struct SendHandle(pub cutensorHandle_t);Expand description
Newtype around cutensorHandle_t so it can be stored in Arc<Mutex>.
Manually Send/Sync because the wrapped pointer is opaque and
cuTENSOR’s docs guarantee thread-safety of the handle when callers
serialise access (the Mutex does that).
Tuple Fields§
§0: cutensorHandle_tTrait Implementations§
impl Send for SendHandle
impl Sync for SendHandle
Auto Trait Implementations§
impl Freeze for SendHandle
impl RefUnwindSafe for SendHandle
impl Unpin for SendHandle
impl UnsafeUnpin for SendHandle
impl UnwindSafe for SendHandle
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