Trait detour::Function [] [src]

pub unsafe trait Function: Sized + Copy + Sync + 'static {
    type Arguments;
    type Output;
    unsafe fn from_ptr(ptr: *const ()) -> Self;
    fn to_ptr(&self) -> *const ();
}

Trait representing a function that can be used as a target or detour for detouring.

Associated Types

The argument types as a tuple.

The return type.

Required Methods

Constructs a Function from an untyped pointer.

Returns an untyped pointer for this function.

Implementors