Expand description
Lets you wrap an iterator and show progress while running it.
extern crate progressive;
use progressive::progress;
use std::time::Duration;
fn main() {
// wrap the range in progress() to see progress information
for _ in progress(0..10) {
// do something expensive here
std::thread::sleep(Duration::from_millis(500));
}
}
Structs§
- Progress
- An iterator that shows progress information while iterating.
Functions§
- progress
- Wraps an iterator and displays progress information while returning the iterators items.