pub enum SnapshotNode {
Panel {
kind: String,
constraints: Constraints,
},
Row {
gap: f32,
children: Vec<SnapshotNode>,
},
Col {
gap: f32,
children: Vec<SnapshotNode>,
},
}Expand description
Recursive tree node for serializing non-strategy layouts.
Variants§
Panel
A leaf panel.
Row
Horizontal container (children laid out left-to-right).
Col
Vertical container (children laid out top-to-bottom).
Trait Implementations§
Source§impl Clone for SnapshotNode
impl Clone for SnapshotNode
Source§fn clone(&self) -> SnapshotNode
fn clone(&self) -> SnapshotNode
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 moreAuto Trait Implementations§
impl Freeze for SnapshotNode
impl RefUnwindSafe for SnapshotNode
impl Send for SnapshotNode
impl Sync for SnapshotNode
impl Unpin for SnapshotNode
impl UnsafeUnpin for SnapshotNode
impl UnwindSafe for SnapshotNode
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