Skip to main content

make_unsafe

Macro make_unsafe 

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

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

ยงExample

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