macro_rules! closure {
($closure:expr, $fn_type:ty) => { ... };
}Expand description
Converts a closure to a FuncPtr.
This macro allows you to use Rust closures as mock implementations in injectorpp by converting them to function pointers.
ยงParameters
$closure: The closure to convert$fn_type: The explicit function type signature that the closure conforms to