Skip to main content

progress_bar

Function progress_bar 

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

Generate a text-based progress bar.

§Arguments

  • pct - Percentage (0.0 - 100.0).
  • width - Number of characters in the bar.

§Returns

A string like [████████░░░░░░░░].