pub enum PersistentNode {
Leaf {
id: PaneId,
constraints: PaneConstraints,
node_extensions: BTreeMap<String, String>,
leaf: PaneLeaf,
},
Split {
id: PaneId,
constraints: PaneConstraints,
node_extensions: BTreeMap<String, String>,
axis: SplitAxis,
ratio: PaneSplitRatio,
first: Arc<PersistentNode>,
second: Arc<PersistentNode>,
},
}Expand description
Immutable persistent pane node.
Split children are Arc-shared so that unchanged subtrees are reused across
versions. Parent links are deliberately omitted (see the module docs); they
are reconstructed during flattening.
Variants§
Leaf
Terminal content node.
Fields
§
constraints: PaneConstraintsPer-node size bounds.
Split
Interior split node with two shared children.
Fields
§
constraints: PaneConstraintsPer-node size bounds.
§
ratio: PaneSplitRatioFirst/second weight ratio (always reduced).
§
first: Arc<PersistentNode>First child subtree.
§
second: Arc<PersistentNode>Second child subtree.
Implementations§
Trait Implementations§
Source§impl Clone for PersistentNode
impl Clone for PersistentNode
Source§fn clone(&self) -> PersistentNode
fn clone(&self) -> PersistentNode
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 moreSource§impl Debug for PersistentNode
impl Debug for PersistentNode
impl Eq for PersistentNode
Source§impl PartialEq for PersistentNode
impl PartialEq for PersistentNode
Source§fn eq(&self, other: &PersistentNode) -> bool
fn eq(&self, other: &PersistentNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PersistentNode
Auto Trait Implementations§
impl Freeze for PersistentNode
impl RefUnwindSafe for PersistentNode
impl Send for PersistentNode
impl Sync for PersistentNode
impl Unpin for PersistentNode
impl UnsafeUnpin for PersistentNode
impl UnwindSafe for PersistentNode
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