rustc_type_ir::inherent

Trait Abi

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

Required Methods§

Source

fn rust() -> Self

Source

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.

Implementors§