Trait termprogress::prelude::WithTitle
source · pub trait WithTitle: Sized + Display {
// Required methods
fn add_title(&mut self, string: impl AsRef<str>);
fn update(&mut self);
fn complete(self);
// Provided method
fn with_title(self, string: impl AsRef<str>) -> Self { ... }
}
Expand description
A trait for creating a progress bar or spinner with a title.
Required Methods§
Provided Methods§
sourcefn with_title(self, string: impl AsRef<str>) -> Self
fn with_title(self, string: impl AsRef<str>) -> Self
Add a title to this indicator.