pub enum TestFn {
StaticTestFn(fn()),
StaticBenchFn(fn(_: &mut Bencher)),
StaticMetricFn(fn(_: &mut MetricMap)),
DynTestFn(Box<dyn FnMut() + Send>),
DynMetricFn(Box<dyn FnMut(&mut MetricMap) + Send>),
DynBenchFn(Box<dyn TDynBenchFn + 'static>),
}
Variants§
StaticTestFn(fn())
StaticBenchFn(fn(_: &mut Bencher))
StaticMetricFn(fn(_: &mut MetricMap))
DynTestFn(Box<dyn FnMut() + Send>)
DynMetricFn(Box<dyn FnMut(&mut MetricMap) + Send>)
DynBenchFn(Box<dyn TDynBenchFn + 'static>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestFn
impl !RefUnwindSafe for TestFn
impl Send for TestFn
impl !Sync for TestFn
impl Unpin for TestFn
impl !UnwindSafe for TestFn
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