Enum test::types::RunnableTest
source · pub(crate) enum RunnableTest {
Static(fn() -> Result<(), String>),
Dynamic(Box<dyn FnOnce() -> Result<(), String> + Send>),
StaticBenchAsTest(fn(_: &mut Bencher) -> Result<(), String>),
DynamicBenchAsTest(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>),
}
🔬This is a nightly-only experimental API. (
test
)Variants§
Static(fn() -> Result<(), String>)
🔬This is a nightly-only experimental API. (
test
)Dynamic(Box<dyn FnOnce() -> Result<(), String> + Send>)
🔬This is a nightly-only experimental API. (
test
)StaticBenchAsTest(fn(_: &mut Bencher) -> Result<(), String>)
🔬This is a nightly-only experimental API. (
test
)DynamicBenchAsTest(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>)
🔬This is a nightly-only experimental API. (
test
)Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RunnableTest
impl Send for RunnableTest
impl !Sync for RunnableTest
impl Unpin for RunnableTest
impl !UnwindSafe for RunnableTest
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