pub struct Summary { /* private fields */ }Expand description
Builder for the end-of-run summary block.
Construct via the summary! macro rather than directly.
Implementations§
Source§impl Summary
impl Summary
Sourcepub fn warn(self, msg: &str) -> Self
pub fn warn(self, msg: &str) -> Self
Add a yellow WARN status line (used when there are errors).
Sourcepub fn stat(self, key: &str, val: &str) -> Self
pub fn stat(self, key: &str, val: &str) -> Self
Add a key/value stat line.
Keys are right-aligned to the longest key in the same section.
Values are printed as-is (may contain ANSI codes from paint).
Trait Implementations§
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