pub trait SafeFnPtr: FnPtr {
// Required method
fn invoke(&self, args: Self::Args) -> Self::Output;
}Expand description
Marker trait for all safe function pointer types (fn / extern fn).
Required Methods§
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.