mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
14 lines
386 B
Rust
14 lines
386 B
Rust
|
|
use indicatif::{ProgressBar, ProgressStyle};
|
|
|
|
|
|
pub const PARETO_SHAPE: f64 = 0.1;
|
|
pub const NUM_INFO_HASHES: usize = 10_000;
|
|
|
|
|
|
pub fn create_progress_bar(name: &str, iterations: u64) -> ProgressBar {
|
|
let t = format!("{:<16} {}", name, "{wide_bar} {pos:>2}/{len:>2}");
|
|
let style = ProgressStyle::default_bar().template(&t);
|
|
|
|
ProgressBar::new(iterations).with_style(style)
|
|
}
|