pub struct TermProgress { /* private fields */ }Expand description
Terminal progress formatter
§Example
let mut progress = anstyle_progress::TermProgress::none()
.status(TermProgressStatus::Normal);
let progress = progress.percent(Some(0));
println!("{progress}");
let progress = progress.percent(Some(50));
println!("{progress}");
let progress = progress.percent(Some(100));
println!("{progress}");
println!("{progress:#}");Implementations§
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for TermProgress
impl Default for TermProgress
Source§impl Display for TermProgress
impl Display for TermProgress
impl Copy 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