```rust // Printing value 0.3 clamped to [0, 1] // [=====> ] let mut progressbar = progressing::ClampingBar::new(); progressbar.setbarlen(20); progressbar.set(0.3).reprintln()
// Mapping from [-9, 5] to [0, 1] // [================> ] (4 / 5) let mut progressbar = progressing::MappingBar::new(-9..=5); progressbar.setbarlen(20); progressbar.set(4).reprintln()
// Bernoulli-Bar counting successes (42 / 60) and attempts (# 130) // [============> ] (42 / 60 # 130) let mut progressbar = progressing::BernoulliBar::fromgoal(60); progressbar.setbar_len(20); progressbar.set((42, 130)).reprintln() ```
Please refer to the examples.