pub trait Layout: 'static {
// Required methods
fn measure(
&self,
cx: &mut dyn LayoutOps,
children: &[RNode],
p: Proposal,
) -> Size;
fn place(&self, cx: &mut dyn LayoutOps, children: &[RNode], bounds: Rect);
}Expand description
Open layout protocol (§7.2). children are the node’s direct children; group nodes
(when/each anchors) are layout-transparent — stacks expand them inline.