pub struct Progress<'a> { /* private fields */ }
Expand description
Representation of the progress structure.
Implementations§
Source§impl<'a> Progress<'a>
Implementation of the progress structure.
impl<'a> Progress<'a>
Implementation of the progress structure.
Sourcepub fn new(
action: &'a str,
description: &'a str,
padding: usize,
) -> Progress<'a>
pub fn new( action: &'a str, description: &'a str, padding: usize, ) -> Progress<'a>
Creates a new progress struct.
Sourcepub fn initialize(&mut self)
pub fn initialize(&mut self)
Initializes the progress by setting a percentage of 0%.
Auto Trait Implementations§
impl<'a> Freeze for Progress<'a>
impl<'a> RefUnwindSafe for Progress<'a>
impl<'a> Send for Progress<'a>
impl<'a> Sync for Progress<'a>
impl<'a> Unpin for Progress<'a>
impl<'a> UnwindSafe for Progress<'a>
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