Skip to main content

Abi

Trait Abi 

Source
pub trait Abi<I>:
    Copy
    + Debug
    + Hash
    + Eq
where 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§

Source

fn abi(self) -> Self

The identity function.

Source

fn rust() -> Self

The ABI extern "Rust".

Source

fn is_rust(self) -> bool

Whether this ABI is extern "Rust".

Source

fn pack_abi(self) -> u8

Pack the ABI into a small dense integer, so it can be stored as packed FnSigKind flags.

Source

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.

Implementations on Foreign Types§

Source§

impl<'tcx> Abi<TyCtxt<'tcx>> for ExternAbi

Implementors§