Skip to main content

bar

Function bar 

Source
pub fn bar(label: &str, total: usize, show: bool) -> ProgressBar
Expand description

A determinate progress bar over total items, rendered as ⣾ label [████░░░░] 12/57 3s. Returns a hidden (no-op) bar when show is false or there is nothing to count, so callers don’t need to branch.