Trait ProgressBar

Source
pub trait ProgressBar {
    type Task: TaskProgress;

    // Required method
    fn format_line(&self, progress: &Self::Task, width: usize) -> String;
}
Expand description

ProgressBar is an abstraction for the appearance of a progress bar.

Required Associated Types§

Source

type Task: TaskProgress

Progress is provided by TaskProgress.

Required Methods§

Source

fn format_line(&self, progress: &Self::Task, width: usize) -> String

formats a line of progress bar to show in terminal.

Implementors§