abi

Macro abi 

Source
macro_rules! abi {
    ( $abi:literal ) => { ... };
}
Expand description

Converts an ABI string like “C” into the corresponding value for use in const generics. This is most useful for stable rust since there u8s are used.

§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)