Skip to main content

create_progress_bar

Function create_progress_bar 

Source
pub fn create_progress_bar(total: u64) -> ProgressBar
Expand description

Create a standard progress bar with consistent styling.

§Arguments

  • total - The total number of items to process

§Returns

A configured ProgressBar instance with a cyan/blue color scheme and standard progress bar formatting.

§Example

use crate::utils::progress::create_progress_bar;

let pb = create_progress_bar(100);
for i in 0..100 {
    // ... do work ...
    pb.inc(1);
}
pb.finish_with_message("Done");