make_safe

Macro make_safe 

Source
macro_rules! make_safe {
    ( $ty:ty ) => { ... };
}
Expand description

Construct a function-pointer type identical to the given one but safe.

ยงExample

type U = unsafe extern "C" fn(i32);
type S = make_safe!(U);
// `S` is `extern "C" fn(i32)`