pub enum PrunePolicy {
KeepLastN(usize),
KeepDepthUnder(usize),
}Expand description
Policy for Tree::prune.
Variants§
KeepLastN(usize)
Keep the newest n children per node, dropping older ones.
KeepDepthUnder(usize)
Remove all nodes at depth >= limit.
Trait Implementations§
Source§impl Clone for PrunePolicy
impl Clone for PrunePolicy
Source§fn clone(&self) -> PrunePolicy
fn clone(&self) -> PrunePolicy
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 PrunePolicy
impl Debug for PrunePolicy
Source§impl PartialEq for PrunePolicy
impl PartialEq for PrunePolicy
impl Copy for PrunePolicy
impl Eq for PrunePolicy
impl StructuralPartialEq for PrunePolicy
Auto Trait Implementations§
impl Freeze for PrunePolicy
impl RefUnwindSafe for PrunePolicy
impl Send for PrunePolicy
impl Sync for PrunePolicy
impl Unpin for PrunePolicy
impl UnsafeUnpin for PrunePolicy
impl UnwindSafe for PrunePolicy
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