pub enum NodeRemovalStrategy {
RetainChildren,
RemoveNodeAndChildren,
}
Expand description
The strategy to use when removing a node from the tree.
This enum represents the strategy to use when removing a node from the tree. The RetainChildren
strategy retains the children of the node when the node is removed. The RemoveNodeAndChildren
strategy removes the node and its children when the node is removed.
Variants§
RetainChildren
Retain the children of the node. This means that the children of the node are attached to the parent of the node when the node is removed. So the children of the node become children of the parent of the node.
RemoveNodeAndChildren
Remove the node and all subsequent children. This means that the node and its children are removed from the tree when the node is removed. All the subsequent grand children of the node are removed from the tree.
Trait Implementations§
Source§impl Clone for NodeRemovalStrategy
impl Clone for NodeRemovalStrategy
Source§fn clone(&self) -> NodeRemovalStrategy
fn clone(&self) -> NodeRemovalStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NodeRemovalStrategy
impl Debug for NodeRemovalStrategy
impl Copy for NodeRemovalStrategy
Auto Trait Implementations§
impl Freeze for NodeRemovalStrategy
impl RefUnwindSafe for NodeRemovalStrategy
impl Send for NodeRemovalStrategy
impl Sync for NodeRemovalStrategy
impl Unpin for NodeRemovalStrategy
impl UnwindSafe for NodeRemovalStrategy
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