Crate simple_bar

source ·
Expand description

simple_bar is an extremely simple terminal progress bar

Example

use std::{thread::sleep, time::Duration};
use simple_bar::ProgressBar;
 
let num_iterations = 500;
let mut bar = ProgressBar::default(num_iterations, 50, false);
 
for _ in 0..num_iterations {
    bar.update();
    sleep(Duration::from_millis(1));
}

This example generates the following output:

above code generates

Structs