pub struct LoadingElement { /* private fields */ }Implementations§
Source§impl LoadingElement
impl LoadingElement
pub fn new( max: usize, name: Box<str>, formatter: Option<fn(usize) -> Box<str>>, ) -> LoadingElement
pub fn get_progress(&self) -> usize
pub fn get_progress_decimal(&self) -> f64
pub fn get_max(&self) -> usize
pub fn get_name(&self) -> Arc<Box<str>>
pub fn format_progress_unit(&self, value: usize) -> Box<str>
pub fn set_max(&mut self, max: usize)
pub fn update(&mut self, addition: usize)
Auto Trait Implementations§
impl Freeze for LoadingElement
impl RefUnwindSafe for LoadingElement
impl Send for LoadingElement
impl Sync for LoadingElement
impl Unpin for LoadingElement
impl UnsafeUnpin for LoadingElement
impl UnwindSafe for LoadingElement
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