pub enum SnapshotNode {
Panel {
kind: Box<str>,
constraints: Constraints,
},
Row {
gap: f32,
constraints: Option<Constraints>,
children: Box<[SnapshotNode]>,
},
Col {
gap: f32,
constraints: Option<Constraints>,
children: Box<[SnapshotNode]>,
},
Grid {
columns: GridColumnMode,
gap: f32,
auto_rows: bool,
children: Box<[SnapshotGridItem]>,
},
}Expand description
Recursive tree topology node for non-strategy snapshots.
Variants mirror the runtime node types (Panel, Row, Col, Grid).
The tree is walked depth-first during capture and rebuilt on restore.
Variants§
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