macro_rules! make_non_extern {
( $ty:ty ) => { ... };
}Expand description
Convert a function-pointer type to a Rust-ABI (fn) function while
preserving its arguments, return type, and safety.
ยงExample
type F = extern "C" fn(i32) -> i32;
type R = make_non_extern!(F);
// `R` is `fn(i32) -> i32`Equivalent to:
with_abi!(Abi::Rust, F)