pub enum TestFunction {
Sync(Arc<dyn Fn(Box<dyn DependencyView + Send + Sync>) + Send + Sync + 'static>),
SyncBench(Arc<dyn Fn(&mut Bencher, Box<dyn DependencyView + Send + Sync>) + Send + Sync + 'static>),
Async(Arc<dyn Fn(Box<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync + 'static>),
AsyncBench(Arc<dyn for<'a> Fn(&'a mut AsyncBencher, Box<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>> + Send + Sync + 'static>),
}
Variants§
Sync(Arc<dyn Fn(Box<dyn DependencyView + Send + Sync>) + Send + Sync + 'static>)
SyncBench(Arc<dyn Fn(&mut Bencher, Box<dyn DependencyView + Send + Sync>) + Send + Sync + 'static>)
Async(Arc<dyn Fn(Box<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync + 'static>)
AsyncBench(Arc<dyn for<'a> Fn(&'a mut AsyncBencher, Box<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>> + Send + Sync + 'static>)
Implementations§
Trait Implementations§
source§impl Clone for TestFunction
impl Clone for TestFunction
source§fn clone(&self) -> TestFunction
fn clone(&self) -> TestFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TestFunction
impl !RefUnwindSafe for TestFunction
impl Send for TestFunction
impl Sync for TestFunction
impl Unpin for TestFunction
impl !UnwindSafe for TestFunction
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)