Skip to main content

widgets

Macro widgets 

Source
macro_rules! widgets {
    ($($widget:expr),* $(,)?) => { ... };
}
Expand description

Builds a Vec<Widget> from widget expressions without repeated .into() calls.

Dynamic children may still be produced with normal iterators and collect::<Vec<Widget>>(). In both forms, children without explicit IDs receive deterministic position-based identity. Set an explicit ID on a logical collection item when retained state should follow the item through reordering.