pub struct ProgressBar { /* private fields */ }

Implementations

Creates a new ProgressBar given:

  1. num_iterations: usize the number of iterations
  2. progress_char: char the char to be printed on the completed spots of the progress bar
  3. empty_char: char the char to be printed on the empty spots of the progress bar

Creates a new ProgressBar with the default chars for the completed and empty spots of the progress bar, which are: '▅' and ' ' respectively.

Changes the chars for the completed and empty spots of the progress bar.

Updates the progress bar

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.