pub fn render_block(
snap: &Snapshot,
note: Option<&str>,
width: usize,
style: &Style,
) -> Vec<String>Expand description
Build the progress block.
Pure — it takes the Style rather than deciding on one, so tests can
render both a plain version (to assert content) and a styled version (to
assert colour) without needing a terminal.