pub enum TestFn {
StaticTestFn(fn()),
StaticBenchFn(fn(_: &mut Bencher)),
DynTestFn(Box<dyn FnOnce() + Send>),
DynBenchFn(Box<dyn TDynBenchFn + 'static>),
}
Variants§
StaticTestFn(fn())
StaticBenchFn(fn(_: &mut Bencher))
DynTestFn(Box<dyn FnOnce() + Send>)
DynBenchFn(Box<dyn TDynBenchFn + 'static>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
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