Function qtmd::qtmd

source ·
pub fn qtmd<Item, Iter>(iterable: Iter) -> Tqdm<Item, Iter> 
where Iter: Iterator<Item = Item>,
Expand description

Wrap Iterator like it in Python. This function creates a default progress bar object and registers it to the global collection. The returned iterator Deref to the given one and will update its tqdm whenever next is called.

Examples found in repository?
examples/simple.rs (line 5)
4
5
6
7
8
fn main() {
    for _ in qtmd(0..10000) {
        sleep(Duration::from_millis(1));
    }
}