pub struct TimerResult<T> {
pub time: Duration,
pub result: T,
pub name: String,
}Expand description
The result of using the timer! macro.
Fields§
§time: DurationThe time it took for the function to execute.
result: TThe result returned by the function’s execution.
name: StringThe name of the executed function.
Implementations§
Source§impl<T> TimerResult<T>
impl<T> TimerResult<T>
Trait Implementations§
Source§impl<T: Clone> Clone for TimerResult<T>
impl<T: Clone> Clone for TimerResult<T>
Source§fn clone(&self) -> TimerResult<T>
fn clone(&self) -> TimerResult<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for TimerResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for TimerResult<T>where
T: RefUnwindSafe,
impl<T> Send for TimerResult<T>where
T: Send,
impl<T> Sync for TimerResult<T>where
T: Sync,
impl<T> Unpin for TimerResult<T>where
T: Unpin,
impl<T> UnwindSafe for TimerResult<T>where
T: UnwindSafe,
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