pub enum TestFn {
StaticTestFn(fn()),
StaticBenchFn(fn(_: &mut Bencher)),
DynTestFn(Box<dyn FnOnce() + Send>),
DynBenchFn(Box<dyn Fn(&mut Bencher) + Send>),
}
🔬 This is a nightly-only experimental API. (
test
)Variants
StaticTestFn(fn())
🔬 This is a nightly-only experimental API. (
test
)StaticBenchFn(fn(_: &mut Bencher))
🔬 This is a nightly-only experimental API. (
test
)DynTestFn(Box<dyn FnOnce() + Send>)
🔬 This is a nightly-only experimental API. (
test
)DynBenchFn(Box<dyn Fn(&mut Bencher) + Send>)
🔬 This is a nightly-only experimental API. (
test
)Implementations
sourceimpl TestFn
impl TestFn
pub fn padding(&self) -> NamePadding
🔬 This is a nightly-only experimental API. (
test
)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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more