pub enum LeafRemoval {
Removed,
WasRoot,
NotFound,
}Expand description
Outcome of LayoutNode::remove_leaf. Removing a pane either
collapses its parent split into the surviving sibling, removes the
only pane (leaving nothing the tree can represent — the caller must
close the window), or finds no such pane.
Variants§
Removed
The leaf was removed and its parent split collapsed into the sibling subtree. The tree still holds ≥1 pane.
WasRoot
The leaf was the root — the tree is a single pane and cannot represent emptiness. The caller closes the window/pane instead.
NotFound
No leaf with that id exists in the tree.
Trait Implementations§
Source§impl Clone for LeafRemoval
impl Clone for LeafRemoval
Source§fn clone(&self) -> LeafRemoval
fn clone(&self) -> LeafRemoval
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LeafRemoval
Source§impl Debug for LeafRemoval
impl Debug for LeafRemoval
impl Eq for LeafRemoval
Source§impl PartialEq for LeafRemoval
impl PartialEq for LeafRemoval
impl StructuralPartialEq for LeafRemoval
Auto Trait Implementations§
impl Freeze for LeafRemoval
impl RefUnwindSafe for LeafRemoval
impl Send for LeafRemoval
impl Sync for LeafRemoval
impl Unpin for LeafRemoval
impl UnsafeUnpin for LeafRemoval
impl UnwindSafe for LeafRemoval
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