pub enum ProgressBarTheme {
Red,
Yellow,
Green,
Blue,
Magenta,
Cyan,
}Expand description
Represents different visual themes for the progress bar.
Variants§
Implementations§
Source§impl ProgressBarTheme
impl ProgressBarTheme
Sourcepub fn template(&self) -> &'static str
pub fn template(&self) -> &'static str
Returns the template string for the selected theme, defining the layout and appearance of the progress bar.
Sourcepub fn progress_chars(&self) -> &'static str
pub fn progress_chars(&self) -> &'static str
Returns the characters used to represent the progress of the bar.
Sourcepub fn tick_chars(&self) -> &'static str
pub fn tick_chars(&self) -> &'static str
Returns the characters used to animate the spinner/ticker in the progress bar.
Trait Implementations§
Source§impl Clone for ProgressBarTheme
impl Clone for ProgressBarTheme
Source§fn clone(&self) -> ProgressBarTheme
fn clone(&self) -> ProgressBarTheme
Returns a duplicate 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 moreSource§impl Debug for ProgressBarTheme
impl Debug for ProgressBarTheme
Source§impl Hash for ProgressBarTheme
impl Hash for ProgressBarTheme
Source§impl Ord for ProgressBarTheme
impl Ord for ProgressBarTheme
Source§fn cmp(&self, other: &ProgressBarTheme) -> Ordering
fn cmp(&self, other: &ProgressBarTheme) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProgressBarTheme
impl PartialEq for ProgressBarTheme
Source§impl PartialOrd for ProgressBarTheme
impl PartialOrd for ProgressBarTheme
impl Copy for ProgressBarTheme
impl Eq for ProgressBarTheme
impl StructuralPartialEq for ProgressBarTheme
Auto Trait Implementations§
impl Freeze for ProgressBarTheme
impl RefUnwindSafe for ProgressBarTheme
impl Send for ProgressBarTheme
impl Sync for ProgressBarTheme
impl Unpin for ProgressBarTheme
impl UnwindSafe for ProgressBarTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more