Trait TestFn

Source
pub trait TestFn<R>:
    Fn() -> R
    + UnwindSafe
    + Send
    + Sync
    + Copy
    + 'static { }
Expand description

Tested function or closure.

This trait is automatically implemented for all functions without arguments.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<R, F> TestFn<R> for F
where F: Fn() -> R + UnwindSafe + Send + Sync + Copy + 'static,