Struct clt::ProgressBar

source ·
pub struct ProgressBar<'a> {
    pub length: isize,
    pub label: &'a str,
    pub fill_char: char,
    pub empty_char: char,
    pub width: isize,
    /* private fields */
}
Expand description

Showing a progress bar. Examples:

use clt::ProgressBar;

let mut bar = ProgressBar::new(100, "Demo");
bar.begin();
for _ in 0..100 {
    // Do something here
    bar.next();
}
bar.end();

Fields

length: isizelabel: &'a strfill_char: charempty_char: charwidth: isize

Implementations

Create a new progressbar.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.