Skip to main content

## FSigKind

# Trait FSigKind

Source

    pub trait FSigKind<I>:
        Copy
        + Debug
        + Hash
        + Eqwhere
        I: Interner<FSigKind = Self>,{
        // Required methods
        fn fn_sig_kind(self) -> Self;
        fn new(
            abi: <I as Interner>::Abi,
            safety: <I as Interner>::Safety,
            c_variadic: bool,
        ) -> Self;
        fn abi(self) -> <I as Interner>::Abi;
        fn safety(self) -> <I as Interner>::Safety;
        fn c_variadic(self) -> bool;
    }

## Required Methods§

Source

#### fn fn_sig_kind(self) -> Self

The identity function.

Source

#### fn new( abi: <I as Interner>::Abi, safety: <I as Interner>::Safety, c_variadic: bool, ) -> Self

Create a new FnSigKind with the given ABI, safety, and C-style variadic flag.

Source

#### fn abi(self) -> <I as Interner>::Abi

Returns the ABI.

Source

#### fn safety(self) -> <I as Interner>::Safety

Returns the safety mode.

Source

#### fn c_variadic(self) -> bool

Do the function arguments end with a C-style variadic argument?

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

Source§

### impl<'tcx> FSigKind<TyCtxt<'tcx>> for FnSigKind