pub fn ballot_bar(total: u64, successes: u64, errors: u64) -> StringExpand description
Per-cell completion bar — variant of braille_bar used
when the phase’s total extent is small enough that each
cell can represent ONE operation rather than a percentage
slice. Renders ballot-box glyphs:
☒(U+2612) — completed with an error☑(U+2611) — completed successfully☐(U+2610) — pending (not yet completed)
Cells are grouped in errors → successes → pending order
so a glance reads worst-news-first; with zero errors the
bar degenerates cleanly to the conventional
☑☑☑…☐☐☐… shape.
total is the cell count (= number of operations, capped
at 10 to match the visual width of the braille variant).
successes and errors are clamped to total so a
brief over-count race during refresh doesn’t render a
malformed bar.