[][src]Struct rate_common::output::Timer

pub struct Timer {
    pub disabled: bool,
    // some fields omitted
}

A RAII object that prints a timing message when it is destroyed.

Fields

disabled: bool

Whether this timer should be silenced

Methods

impl Timer[src]

pub fn name(name: &'static str) -> Timer[src]

Create a timer with a given name.

Trait Implementations

impl Drop for Timer[src]

fn drop(&mut self)[src]

Write the elapsed time as comment.

Auto Trait Implementations

impl Send for Timer

impl Unpin for Timer

impl Sync for Timer

impl UnwindSafe for Timer

impl RefUnwindSafe for Timer

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]