rustc_trait_selection::infer::canonical::ir::inherent

Trait Abi

pub trait Abi<I>:
    Copy
    + Debug
    + Hash
    + Eq
where I: Interner<Abi = Self>,
{ // Required methods fn rust() -> Self; fn is_rust(self) -> bool; }

Required Methods§

fn rust() -> Self

fn is_rust(self) -> bool

Whether this ABI is extern "Rust".

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 Abi

Implementors§