pub struct Bar(_);
Expand description
A progress bar index for use with Progress
.
This type has no meaningful methods of its own. Individual bars are advanced
by method calls on Progress
:
use linya::Progress;
let mut progress = Progress::new();
let bar = progress.bar(100, "Downloading");
progress.inc_and_draw(&bar, 1);
As shown above, this type can only be constructed via Progress::bar
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Bar
impl Send for Bar
impl Sync for Bar
impl Unpin for Bar
impl UnwindSafe for Bar
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more