Macro table_formatter::table
source · macro_rules! table { {$h: ident $(-)+ $d: ident $(with $b: expr)?} => { ... }; {$h: ident $d: ident $(with $b: expr)?} => { ... }; {$d: expr $(, border = $b: expr)?} => { ... }; }
Expand description
This macro is used to generate a table.
When you input two identifiers, this will call Table::create. If you add “-“s between identifiers, it will generate a splitter.
You can add with Border
to add a Border definition.
If you just input a single expression, this will call Table::new directly.
You can also add border = Border
to give a Border definition.