pub struct ProgressBar {
pub every_s: f64,
pub confidence: f64,
/* private fields */
}Expand description
Progress lines on the standard error.
Fields§
§every_s: f64Seconds between two progress lines within a long condition.
confidence: f64Confidence of the printed intervals.
Implementations§
Source§impl ProgressBar
impl ProgressBar
Sourcepub fn new(every_s: f64) -> ProgressBar
pub fn new(every_s: f64) -> ProgressBar
A progress display with a line every every_s seconds within a condition.
Trait Implementations§
Source§impl Callback for ProgressBar
impl Callback for ProgressBar
Source§fn on_run_start(&mut self, info: &RunInfo)
fn on_run_start(&mut self, info: &RunInfo)
Before the first condition.
Source§fn on_condition_start(&mut self, _: usize, _: &Condition) -> Action
fn on_condition_start(&mut self, _: usize, _: &Condition) -> Action
Before a condition:
Action::Skip does not run it.Source§fn on_batch_end(&mut self, p: &Progress<'_>) -> Action
fn on_batch_end(&mut self, p: &Progress<'_>) -> Action
After every batch of trials:
Action::StopCondition stops the condition.Source§fn on_condition_end(&mut self, r: &ConditionResult) -> Action
fn on_condition_end(&mut self, r: &ConditionResult) -> Action
After a condition (run or skipped):
Action::StopRun ends the run.Source§fn on_run_end(&mut self, _results: &[ConditionResult])
fn on_run_end(&mut self, _results: &[ConditionResult])
After the last condition.
Source§impl Clone for ProgressBar
impl Clone for ProgressBar
Source§impl Debug for ProgressBar
impl Debug for ProgressBar
Auto Trait Implementations§
impl Forget for ProgressBar
impl Freeze for ProgressBar
impl RefUnwindSafe for ProgressBar
impl Send for ProgressBar
impl Sync for ProgressBar
impl Unpin for ProgressBar
impl UnsafeUnpin for ProgressBar
impl UnwindSafe for ProgressBar
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more