Macro table_formatter::cell
source · macro_rules! cell { () => { ... }; ($(-)+) => { ... }; ($d: expr $(, align=$align: expr)? $(, padding=$padding: expr)? $(, width=$width: expr)?) => { ... }; }
Expand description
This macro is used to generate a table cell.
If you input nothing, it will generate Content::None.
If you input “-“s, it will generate Content::Splitter.
If you input an expression, it will generate a new Content::Text by calling Content::new. You can also add alignment, padding and width definitions.
cell!("hello world", align=Align::Left, padding=Padding::NONE);