pub struct TermProgress { /* private fields */ }Expand description
Terminal progress formatter
§Example
let mut progress = TermProgress::start();
let progress = progress.percent(0);
println!("{progress}");
let progress = progress.percent(50);
println!("{progress}");
let progress = progress.percent(100);
println!("{progress}");
let progress = TermProgress::remove();
println!("{progress}");Implementations§
Source§impl TermProgress
impl TermProgress
Trait Implementations§
Source§impl Clone for TermProgress
impl Clone for TermProgress
Source§fn clone(&self) -> TermProgress
fn clone(&self) -> TermProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TermProgress
Source§impl Default for TermProgress
impl Default for TermProgress
Auto Trait Implementations§
impl Freeze for TermProgress
impl RefUnwindSafe for TermProgress
impl Send for TermProgress
impl Sync for TermProgress
impl Unpin for TermProgress
impl UnsafeUnpin for TermProgress
impl UnwindSafe for TermProgress
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