Skip to main content

section

Macro section 

Source
macro_rules! section {
    ($value:expr) => { ... };
    ($value:expr, $fg:expr) => { ... };
    ($value:expr, $fg:expr, $bg:expr) => { ... };
}
Expand description

Formats a section for presentation.

§Arguments

  • title- Title’s section
  • fg- Text’s colour. If None uses the default colour.
  • bg- Text background’s colour. If None uses the default colour.

§Returns

A formatted String with foreground and background colours.