pub enum TestFn {
StaticTestFn(fn() -> Result<(), String>),
StaticBenchFn(fn(_: &mut Bencher) -> Result<(), String>),
StaticBenchAsTestFn(fn(_: &mut Bencher) -> Result<(), String>),
DynTestFn(Box<dyn FnOnce() -> Result<(), String> + Send>),
DynBenchFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>),
DynBenchAsTestFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>),
}
🔬This is a nightly-only experimental API. (
test
)Variants§
StaticTestFn(fn() -> Result<(), String>)
🔬This is a nightly-only experimental API. (
test
)StaticBenchFn(fn(_: &mut Bencher) -> Result<(), String>)
🔬This is a nightly-only experimental API. (
test
)StaticBenchAsTestFn(fn(_: &mut Bencher) -> Result<(), String>)
🔬This is a nightly-only experimental API. (
test
)DynTestFn(Box<dyn FnOnce() -> Result<(), String> + Send>)
🔬This is a nightly-only experimental API. (
test
)DynBenchFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>)
🔬This is a nightly-only experimental API. (
test
)DynBenchAsTestFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>)
🔬This is a nightly-only experimental API. (
test
)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