pub enum Node {
Row {
gap: f32,
children: Vec<NodeId>,
},
Col {
gap: f32,
children: Vec<NodeId>,
},
Panel {
id: PanelId,
kind: Arc<str>,
constraints: Constraints,
},
TaffyPassthrough {
style: Rc<Style>,
children: Vec<NodeId>,
},
}Expand description
A node in the layout tree.
Variants§
Row
Horizontal container laying children left-to-right.
Col
Vertical container laying children top-to-bottom.
Panel
Leaf node representing a single panel.
Fields
§
constraints: ConstraintsSize constraints for this panel.
TaffyPassthrough
Raw Taffy node for escape-hatch styling.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl !Send for Node
impl !Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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