pub struct ProgressBar {
pub length: u32,
pub filled_char: char,
pub empty_char: char,
pub head_char: Option<char>,
pub start_char: Option<String>,
pub end_char: Option<String>,
}Expand description
A text-based progress bar generator.
Fields§
§length: u32Total number of steps.
filled_char: charCharacter for the filled portion.
empty_char: charCharacter for the empty portion.
head_char: Option<char>Character for the current position (head).
start_char: Option<String>Opening bracket/character.
end_char: Option<String>Closing bracket/character.
Implementations§
Trait Implementations§
Source§impl Clone for ProgressBar
impl Clone for ProgressBar
Source§fn clone(&self) -> ProgressBar
fn clone(&self) -> ProgressBar
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 ProgressBar
impl Debug for ProgressBar
Auto Trait Implementations§
impl Freeze for ProgressBar
impl RefUnwindSafe for ProgressBar
impl Send for ProgressBar
impl Sync for ProgressBar
impl Unpin for ProgressBar
impl UnwindSafe for ProgressBar
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