pub struct WeakPersistent<T: GarbageCollected> { /* private fields */ }Expand description
WeakPersistent is a way to create a weak pointer from an off-heap object to an on-heap object. The pointer is automatically cleared when the pointee gets collected. WeakPersistent must be constructed and destructed in the same thread.
Implementations§
Source§impl<T: GarbageCollected> WeakPersistent<T>
impl<T: GarbageCollected> WeakPersistent<T>
Trait Implementations§
Source§impl<T: GarbageCollected> Debug for WeakPersistent<T>
impl<T: GarbageCollected> Debug for WeakPersistent<T>
Source§impl<T: GarbageCollected> Drop for WeakPersistent<T>
impl<T: GarbageCollected> Drop for WeakPersistent<T>
Auto Trait Implementations§
impl<T> Freeze for WeakPersistent<T>
impl<T> RefUnwindSafe for WeakPersistent<T>where
T: RefUnwindSafe,
impl<T> !Send for WeakPersistent<T>
impl<T> !Sync for WeakPersistent<T>
impl<T> Unpin for WeakPersistent<T>where
T: Unpin,
impl<T> UnsafeUnpin for WeakPersistent<T>
impl<T> UnwindSafe for WeakPersistent<T>where
T: UnwindSafe,
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