pub struct ProgressBar { /* private fields */ }Implementations§
Source§impl ProgressBar
impl ProgressBar
pub fn new(max: u64) -> Self
pub fn new_in_progress(progress: f64, max: u64) -> Self
pub fn new_finished(max: u64) -> Self
pub fn percentage(&self) -> f64
pub fn is_finished(&self) -> bool
pub fn set_progress(&mut self, progress: f64)
pub fn get_progress(&self) -> f64
pub fn get_max(&self) -> u64
pub fn restart(&mut self)
pub fn advance(&mut self)
pub fn increment(&mut self, by: f64)
pub fn decrement(&mut self, by: f64)
pub fn finish(&mut self)
pub fn as_range(&self) -> Range<f64>
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