Skip to main content

bar

Function bar 

Source
pub fn bar(current: usize, total: usize, width: usize) -> String
Expand description

Render a current/total bar of the given width.

Pure and separately testable, because off-by-one bars are the classic place a progress indicator lies about how far along it is.