pub struct TimeReporterBuilder { /* private fields */ }
Expand description
A configurable builder for a TimeReporter
Implementations§
Source§impl TimeReporterBuilder
impl TimeReporterBuilder
Sourcepub fn new<S: Into<String>>(name: S) -> Self
pub fn new<S: Into<String>>(name: S) -> Self
Create a new TimeReporter
builder with the given name
pub fn build(&self) -> TimeReporter
Sourcepub fn print_order(&mut self, print_order: PrintOrder) -> &mut Self
pub fn print_order(&mut self, print_order: PrintOrder) -> &mut Self
Set the printing order of the total times.
Sourcepub fn width(&mut self, width: usize) -> &mut Self
pub fn width(&mut self, width: usize) -> &mut Self
Set the minimum formatting width of the total times.
Note: Should be at least precision + 2
(i.e at least one leading digit + decimal point + precision)
or this option will have no effect. Alternatively precision should be at most width - 2
.
Fill character and alignment are hardcoded to space and left-align.
Trait Implementations§
Source§impl Clone for TimeReporterBuilder
impl Clone for TimeReporterBuilder
Source§fn clone(&self) -> TimeReporterBuilder
fn clone(&self) -> TimeReporterBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimeReporterBuilder
impl Debug for TimeReporterBuilder
Source§impl PartialEq for TimeReporterBuilder
impl PartialEq for TimeReporterBuilder
impl Eq for TimeReporterBuilder
impl StructuralPartialEq for TimeReporterBuilder
Auto Trait Implementations§
impl Freeze for TimeReporterBuilder
impl RefUnwindSafe for TimeReporterBuilder
impl Send for TimeReporterBuilder
impl Sync for TimeReporterBuilder
impl Unpin for TimeReporterBuilder
impl UnwindSafe for TimeReporterBuilder
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.