Skip to main content

section

Macro section 

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

Section { … }, optionally with a header: section![header: text("Title"); …].