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.