Struct indicatif::WeakProgressBar
source · [−]pub struct WeakProgressBar { /* private fields */ }Expand description
A weak reference to a ProgressBar.
Useful for creating custom steady tick implementations
Implementations
sourceimpl WeakProgressBar
impl WeakProgressBar
sourcepub fn upgrade(&self) -> Option<ProgressBar>
pub fn upgrade(&self) -> Option<ProgressBar>
Attempts to upgrade the Weak pointer to a ProgressBar, delaying dropping of the inner
value if successful. Returns None if the inner value has since been dropped.
Trait Implementations
sourceimpl Clone for WeakProgressBar
impl Clone for WeakProgressBar
sourcefn clone(&self) -> WeakProgressBar
fn clone(&self) -> WeakProgressBar
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for WeakProgressBar
impl Send for WeakProgressBar
impl Sync for WeakProgressBar
impl Unpin for WeakProgressBar
impl UnwindSafe for WeakProgressBar
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