pub struct ProgressPlan { /* private fields */ }Expand description
A decided-but-not-yet-drawn display, and the first half of starting a run.
The display cannot be built until the input files have been validated and
grouped, because it needs one bar per group — but the banner has to be
printed before that work, or the messages validation emits land above it
and the “everything the run says appears beneath the banner” property is
quietly false. So the decision and the banner happen here, at the very top
of the run, and start turns the plan into a reporter once
the names are known.
Implementations§
Source§impl ProgressPlan
impl ProgressPlan
Sourcepub fn new(quiet: bool) -> Self
pub fn new(quiet: bool) -> Self
Decide how this run will report, and announce it. Call this first: the clock it starts is the one the closing summary reports.
Sourcepub fn start(self, names: &[String]) -> ProgressReporter
pub fn start(self, names: &[String]) -> ProgressReporter
Draw the display for names (the file group display names, in
command-line order).
Auto Trait Implementations§
impl Freeze for ProgressPlan
impl RefUnwindSafe for ProgressPlan
impl Send for ProgressPlan
impl Sync for ProgressPlan
impl Unpin for ProgressPlan
impl UnsafeUnpin for ProgressPlan
impl UnwindSafe for ProgressPlan
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.