pub struct RecycledNode { /* private fields */ }Expand description
A removed node kept in a pool with its old id, so that a later node of the same type can reuse it.
Implementations§
Source§impl RecycledNode
impl RecycledNode
Sourcepub fn node_mut(&mut self) -> &mut dyn Node
pub fn node_mut(&mut self) -> &mut dyn Node
Returns the pooled node, so that it can be reset before reuse.
Sourcepub fn into_parts(self) -> (NodeId, Box<dyn Node>, RecycleOrigin)
pub fn into_parts(self) -> (NodeId, Box<dyn Node>, RecycleOrigin)
Splits the shell into its stable id, its node and the recycle path it came from.
Auto Trait Implementations§
impl !RefUnwindSafe for RecycledNode
impl !Send for RecycledNode
impl !Sync for RecycledNode
impl !UnwindSafe for RecycledNode
impl Forget for RecycledNode
impl Freeze for RecycledNode
impl Move for RecycledNode
impl Unpin for RecycledNode
impl UnsafeUnpin for RecycledNode
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