Struct counter_cli::loading_bar::LoadingBar
source · pub struct LoadingBar { /* private fields */ }Implementations§
source§impl LoadingBar
impl LoadingBar
pub fn new(total: u32) -> Self
pub fn update(&mut self, elapsed_s: f32, increment: u32) -> &mut Self
pub fn draw(&mut self, description: &str) -> bool
sourcepub fn right_time_unit(seconds: f32) -> String
pub fn right_time_unit(seconds: f32) -> String
Gets the time unit that is most appropriate for the given time in seconds
sourcepub fn right_avg_unit(avg: f32) -> String
pub fn right_avg_unit(avg: f32) -> String
Gets the apropriate display of the average speed
Auto Trait Implementations§
impl RefUnwindSafe for LoadingBar
impl Send for LoadingBar
impl Sync for LoadingBar
impl Unpin for LoadingBar
impl UnwindSafe for LoadingBar
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