Function pbar

Source
pub fn pbar<I: ProgressIterator + ExactSizeIterator>(
    it: I,
) -> ProgressBarIter<I>
Expand description

A very lazy wrapper for a ProgressIterator that is also an ExactSizeIterator.

Looks nice enough as a default.

Style heavily borrowing from tqdm.

Example:

use lazy_pbar::pbar;
 
for i in pbar(0..1_000_000) {
// Do whatever
}