pub struct WeakNode<T: Debug + Clone> {
pub inner: Weak<HedelCell<NodeInner<T>>>,
}Expand description
Rc is a strong pointer meaning it increment a reference counter.
Weak is a weak pointer meaning it doesn’t increment the reference counter,
letting you access the value if it still exists in memory,
modify it as its pointing to HedelCell,
but without holding it in memory any longer.
Necessary to avoid memory leaking.
Fields§
§inner: Weak<HedelCell<NodeInner<T>>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for WeakNode<T>
impl<T> !RefUnwindSafe for WeakNode<T>
impl<T> !Send for WeakNode<T>
impl<T> !Sync for WeakNode<T>
impl<T> Unpin for WeakNode<T>
impl<T> UnsafeUnpin for WeakNode<T>
impl<T> !UnwindSafe for WeakNode<T>
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