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§
Sourcetype Task: TaskProgress
type Task: TaskProgress
Progress is provided by TaskProgress.
Required Methods§
Sourcefn format_line(&self, progress: &Self::Task, width: usize) -> String
fn format_line(&self, progress: &Self::Task, width: usize) -> String
formats a line of progress bar to show in terminal.