Struct indicatif::ProgressStyle
source · pub struct ProgressStyle { /* private fields */ }
Expand description
Controls the rendering style of progress bars.
Implementations§
source§impl ProgressStyle
impl ProgressStyle
sourcepub fn default_bar() -> ProgressStyle
pub fn default_bar() -> ProgressStyle
Returns the default progress bar style for bars.
sourcepub fn default_spinner() -> ProgressStyle
pub fn default_spinner() -> ProgressStyle
Returns the default progress bar style for spinners.
sourcepub fn tick_chars(self, s: &str) -> ProgressStyle
pub fn tick_chars(self, s: &str) -> ProgressStyle
Sets the tick character sequence for spinners.
sourcepub fn progress_chars(self, s: &str) -> ProgressStyle
pub fn progress_chars(self, s: &str) -> ProgressStyle
Sets the three progress characters (filled, current, to do)
.
sourcepub fn template(self, s: &str) -> ProgressStyle
pub fn template(self, s: &str) -> ProgressStyle
Sets the template string for the progress bar.
source§impl ProgressStyle
impl ProgressStyle
sourcepub fn get_tick_char(&self, idx: u64) -> char
pub fn get_tick_char(&self, idx: u64) -> char
Returns the tick char for a given number.
sourcepub fn get_final_tick_char(&self) -> char
pub fn get_final_tick_char(&self) -> char
Returns the tick char for the finished state.
Trait Implementations§
source§impl Clone for ProgressStyle
impl Clone for ProgressStyle
source§fn clone(&self) -> ProgressStyle
fn clone(&self) -> ProgressStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more