Struct dlpackrs::tensor::ManagerContext
source · [−]#[repr(C)]pub struct ManagerContext<C> {
pub ptr: Option<NonNull<*mut c_void>>,
/* private fields */
}
Expand description
A typed ManagerContext type that is !Unpin
i.e. pinnable for safety since it holds a pointer to the underlying DLTensor.
Fields
ptr: Option<NonNull<*mut c_void>>
Implementations
Trait Implementations
Auto Trait Implementations
impl<C> RefUnwindSafe for ManagerContext<C>where
C: RefUnwindSafe,
impl<C> !Send for ManagerContext<C>
impl<C> !Sync for ManagerContext<C>
impl<C> !Unpin for ManagerContext<C>
impl<C> UnwindSafe for ManagerContext<C>where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more