pub trait Abi<I>:
Copy
+ Debug
+ Hash
+ Eqwhere
I: Interner<Abi = Self>,{
// Required methods
fn abi(self) -> Self;
fn rust() -> Self;
fn is_rust(self) -> bool;
fn pack_abi(self) -> u8;
fn unpack_abi(abi_index: u8) -> Self;
}Required Methods§
Sourcefn pack_abi(self) -> u8
fn pack_abi(self) -> u8
Pack the ABI into a small dense integer, so it can be stored as packed FnSigKind flags.
Sourcefn unpack_abi(abi_index: u8) -> Self
fn unpack_abi(abi_index: u8) -> Self
Unpack the ABI from packed FnSigKind flags.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.