Skip to main content

list

Macro list 

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

List { … } over several rows.

List { Text("a"); Text("b") } is list![text("a"), text("b")] — two rows, because the children become a TupleView and a List renders each element of its content as a row. Passing a stack instead, which is what the free function crate::view::list takes, gives one row holding a stack.