pub enum TestFn {
StaticTestFn(fn() -> Result<(), String>),
StaticBenchFn(fn(_: &mut Bencher) -> Result<(), String>),
DynTestFn(Box<dyn FnOnce() -> Result<(), String> + Send>),
DynBenchFn(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
)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
)