pub unsafe trait Function:
Sized
+ Copy
+ Sync
+ 'static {
type Arguments;
type Output;
// Required methods
unsafe fn from_ptr(ptr: *const ()) -> Self;
fn to_ptr(&self) -> *const ();
}
Expand description
Trait representing a function that can be used as a target or detour for detouring.
Required Associated Types§
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.