Skip to main content

progress_bar

Function progress_bar 

Source
pub fn progress_bar(ratio: f64, width: usize) -> String
Expand description

Render a plain (uncolored) progress bar using block characters.

ratio is clamped to 0.0–1.0. width is the total character count. Callers can wrap the result in ANSI color as needed.