pub struct OperateIn<'k, T>where
T: Opaque + 'k,{ /* private fields */ }Expand description
Wrapper around a Pin<&'k T::Kind<'k>> for implied bounds.
Derefs to Pin<&'k T::Kind<'k>>.
Methods from Deref<Target = Pin<&'k T::Kind<'k>>>§
1.33.0 · Sourcepub fn as_ref(&self) -> Pin<&<Ptr as Deref>::Target>where
Ptr: Deref,
pub fn as_ref(&self) -> Pin<&<Ptr as Deref>::Target>where
Ptr: Deref,
Gets a shared reference to the pinned value this Pin points to.
This is a generic method to go from &Pin<Pointer<T>> to Pin<&T>.
It is safe because, as part of the contract of Pin::new_unchecked,
the pointee cannot move after Pin<Pointer<T>> got created.
“Malicious” implementations of Pointer::Deref are likewise
ruled out by the contract of Pin::new_unchecked.
1.84.0 · Sourcepub fn as_deref_mut(
self: Pin<&mut Pin<Ptr>>,
) -> Pin<&mut <Ptr as Deref>::Target>where
Ptr: DerefMut,
pub fn as_deref_mut(
self: Pin<&mut Pin<Ptr>>,
) -> Pin<&mut <Ptr as Deref>::Target>where
Ptr: DerefMut,
Gets Pin<&mut T> to the underlying pinned value from this nested Pin-pointer.
This is a generic method to go from Pin<&mut Pin<Pointer<T>>> to Pin<&mut T>. It is
safe because the existence of a Pin<Pointer<T>> ensures that the pointee, T, cannot
move in the future, and this method does not enable the pointee to move. “Malicious”
implementations of Ptr::DerefMut are likewise ruled out by the contract of
Pin::new_unchecked.