pub struct SimpleBar { /* private fields */ }
Expand description
A simple progress bar implementation, based off that of the progress crates progresbar
Trait Implementations
sourceimpl IsBar for SimpleBar
impl IsBar for SimpleBar
sourcefn display(&mut self) -> String
fn display(&mut self) -> String
Some implementation details:
starts with “\r” and has no end char
if it cannot get the real term size, uses 81 as the size
type Progress = usize
type Progress = usize
The unit that is passed to IsBar::set_progress
Read more
type Args = ()
type Args = ()
Arguments that are passed to IsBar::new
sourcefn set_progress(&mut self, progress: Self::Progress)
fn set_progress(&mut self, progress: Self::Progress)
fn close_method(&self) -> BarCloseMethod
impl PrecentageBarFlag for SimpleBar
Auto Trait Implementations
impl RefUnwindSafe for SimpleBar
impl Send for SimpleBar
impl Sync for SimpleBar
impl Unpin for SimpleBar
impl UnwindSafe for SimpleBar
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more