Struct ProgressStyle
pub struct ProgressStyle { /* private fields */ }
Implementations
impl ProgressStyle
fn default_bar() -> SelfReturns the default progress bar style for bars
fn default_spinner() -> SelfReturns the default progress bar style for spinners
fn with_template(template: &str) -> Result<Self, TemplateError>Sets the template string for the progress bar
Review the list of template keys for more information.
fn tick_chars(self, s: &str) -> SelfSets the tick character sequence for spinners
Note that the last character is used as the [final tick string][Self::get_final_tick_str()]. At least two characters are required to provide a non-final and final state.
fn tick_strings(self, s: &[&str]) -> SelfSets the tick string sequence for spinners
Note that the last string is used as the [final tick string][Self::get_final_tick_str()]. At least two strings are required to provide a non-final and final state.
fn progress_chars(self, s: &str) -> SelfSets the progress characters
(filled, current, to do)You can pass more than three for a more detailed display. All passed grapheme clusters need to be of equal width.
fn with_key<S: ProgressTracker + 'static>(self, key: &'static str, f: S) -> SelfAdds a custom key that owns a
ProgressTrackerto the templatefn template(self, s: &str) -> Result<Self, TemplateError>Sets the template string for the progress bar
Review the list of template keys for more information.
fn get_tick_str(&self, idx: u64) -> &strReturns the tick string for a given number
fn get_final_tick_str(&self) -> &strReturns the tick string for the finished state
Trait Implementations
impl Clone for ProgressStyle
fn clone(&self) -> Self