pub enum LayoutNode {
Split {
direction: Direction,
sizes: Vec<usize>,
children: Vec<LayoutNode>,
},
Leaf {
name: String,
renderable: Option<String>,
size: Option<usize>,
},
}Expand description
A layout node — can be a leaf (containing a renderable) or a split.
Variants§
Split
A split container with children and a direction.
Fields
§
children: Vec<LayoutNode>Child layout nodes.
Leaf
A leaf with a renderable name (placeholder) and optional fixed size.
Implementations§
Source§impl LayoutNode
impl LayoutNode
Trait Implementations§
Source§impl Clone for LayoutNode
impl Clone for LayoutNode
Source§fn clone(&self) -> LayoutNode
fn clone(&self) -> LayoutNode
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 moreAuto Trait Implementations§
impl Freeze for LayoutNode
impl RefUnwindSafe for LayoutNode
impl Send for LayoutNode
impl Sync for LayoutNode
impl Unpin for LayoutNode
impl UnsafeUnpin for LayoutNode
impl UnwindSafe for LayoutNode
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