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