pub struct HowMuch { /* private fields */ }
Implementations§
Source§impl HowMuch
impl HowMuch
Sourcepub fn new() -> HowMuch
pub fn new() -> HowMuch
Examples found in repository?
examples/simple.rs (line 10)
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
fn main() {
let mut hm = HowMuch::new();
thread::sleep(Duration::new(1,0));
hm.tag("SLEEP 1s");
thread::sleep(Duration::new(2,0));
hm.tag("SLEEP 2s");
thread::sleep(Duration::new(3,0));
hm.tag("SLEEP 3s");
}
Sourcepub fn tag(&mut self, tag: &str)
pub fn tag(&mut self, tag: &str)
Examples found in repository?
examples/simple.rs (line 14)
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
fn main() {
let mut hm = HowMuch::new();
thread::sleep(Duration::new(1,0));
hm.tag("SLEEP 1s");
thread::sleep(Duration::new(2,0));
hm.tag("SLEEP 2s");
thread::sleep(Duration::new(3,0));
hm.tag("SLEEP 3s");
}
pub fn set_output(&mut self, output: Output)
pub fn set_precision(&mut self, precision: Precision)
pub fn set_report(&mut self, report: Report)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HowMuch
impl RefUnwindSafe for HowMuch
impl Send for HowMuch
impl Sync for HowMuch
impl Unpin for HowMuch
impl UnwindSafe for HowMuch
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