pub unsafe trait FunctionPtr:
Sized
+ Copy
+ Debug
+ Send
+ Sync
+ 'static {
type Args;
type Output;
const ARITY: usize;
const SAFE: bool;
const EXTERN: bool;
const ABI: Abi;
}Expand description
Trait representing a function.
§Safety
This trait should only be implemented for function pointers and the associated types and constants have to match the function pointer type.
Required Associated Constants§
Required Associated Types§
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.