Expand description
The flat table renderer.
Two rules earn this module its existence:
- A cell is an enum, not a string. A report cannot accidentally hand the
renderer a
0for a value its adapter cannot populate — it must sayCell::Unsupported, which renders as a dim–: unsupported columns are greyed out rather than printing a misleading0. - Estimates are marked at the point of rendering:
Cell::Moneycarries anestimatedflag, prints a trailing~, and triggers the legend footer.
Structs§
Enums§
- Cell
- One rendered value. Numeric variants align right; text aligns left.
Constants§
- UNSUPPORTED
- Placeholder for a KPI the source adapter cannot populate.
Functions§
- format_
count - Human-readable counts: plain below 1000,
kbelow a million, thenM. - format_
money - Currency, with a trailing
~when the figure is an estimate and~+when it is an estimate that also omits spend it could not price.