pub struct ProgressBarLog {
bar: ProgressBar,
}Expand description
A simple wrapper around ProgressBar for logging progress.
§Example
let progress = ProgressBarLog::new(100);
for i in 0..100 {
progress.set_message(&format!("Processing item {}", i));
progress.inc();
}
progress.finish();Fields§
§bar: ProgressBarImplementations§
Source§impl ProgressBarLog
A simple wrapper around ProgressBar for logging progress.
impl ProgressBarLog
A simple wrapper around ProgressBar for logging progress.
ProgressBarLog provides a convenient interface to create and manipulate a progress bar
with custom styling and logging messages. This is useful for tracking long-running
operations, like generating or evaluating multiple scheduling solutions.
§Example
let progress = ProgressBarLog::new(100);
for i in 0..100 {
progress.set_message(&format!("Processing item {}", i));
progress.inc();
}
progress.finish();Auto Trait Implementations§
impl Freeze for ProgressBarLog
impl !RefUnwindSafe for ProgressBarLog
impl Send for ProgressBarLog
impl Sync for ProgressBarLog
impl Unpin for ProgressBarLog
impl !UnwindSafe for ProgressBarLog
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