pub struct Summary {
pub exact: usize,
pub off_size: usize,
pub failed: usize,
}Expand description
A tally of a finished run.
Fields§
§exact: usize§off_size: usize§failed: usizeImplementations§
Source§impl Summary
impl Summary
pub fn total(&self) -> usize
Sourcepub fn ok(&self) -> bool
pub fn ok(&self) -> bool
A run is successful only if something happened and nothing went wrong.
The total() > 0 clause is deliberate: a run that captured nothing
has an empty problem list, and without this it would report success.
An empty green is the most misleading result a tool can produce.
Trait Implementations§
impl Copy for Summary
impl Eq for Summary
impl StructuralPartialEq for Summary
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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