pub trait WithStepProgress: Sized {
    fn get_step_progress(&mut self) -> &mut StepProgress;

    fn with_humanize(self, humanize: bool) -> Self { ... }
fn with_unit<S: Into<String>>(self, unit: S) -> Self { ... }
fn with_max_step(self, max_step: usize) -> Self { ... }
fn set_max_step(&mut self, max_step: usize) { ... }
fn max_step(&mut self) -> Option<usize> { ... }
fn cur_step(&mut self) -> usize { ... } }
Expand description

A type that contains a progress bar that can only step forward.

Note that this trait auto-implements WithProgress.

Required methods

Provided methods

Change wether units are converted to human-readable units.

Change displayed unit.

Update expected max step.

Update expected max step.

Get expected max step.

Get current step.

Implementors