Function core_extensions::measure_time::try_measure [−][src]
pub fn try_measure<F, T, E>(f: F) -> Result<(MyDuration, T), E> where
F: FnOnce() -> Result<T, E>,
Measures the time taken by fallible function f
to execute,
returning a pair of Result<(MyDuration
,T
),E>,
so that this function can be used in combination with ?
.