macro_rules! make_unsafe {
( $ty:ty ) => { ... };
}Expand description
Convert a function-pointer type to the unsafe variant of the same signature. Arguments, return type, and ABI are preserved.
ยงExample
type S = extern "C" fn(i32);
type U = make_unsafe!(S);
// `U` is `unsafe extern "C" fn(i32)`