[][src]Crate prgrs

prgrs is a progress bar for rust, that aims to work like the python package tqdm.

Example

use prgrs::{Prgrs, writeln, Length};
use std::{thread, time};

fn main() {
    for i in Prgrs::new(0..1000, 1000).set_length_move(Length::Proportional(0.5)){
        thread::sleep(time::Duration::from_millis(10));
        if i % 10 == 0{
            let str = format!("{}", i);
            writeln(&str).ok();
        }
    }
}

Structs

Prgrs

Enums

Length

Use this struct to set the length of the progress debug_assert!

Functions

writeln

Use this function to write to the terminal, while displaying a progress bar.