Struct rustc_lint::middle::ty::FnSigUnstable [-] [+] [src]

pub struct FnSig<'tcx> {
    pub inputs: Vec<&'tcx TyS<'tcx>>,
    pub output: FnOutput<'tcx>,
    pub variadic: bool,
}

Signature of a function type, which I have arbitrarily decided to use to refer to the input/output types.

Fields

inputs
output
variadic

Trait Implementations

impl<'tcx> Debug for FnSig<'tcx>

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl<'tcx> HasProjectionTypes for FnSig<'tcx>

fn has_projection_types(&self) -> bool

impl<'tcx> TypeFoldable<'tcx> for FnSig<'tcx>

fn fold_with<F>(&self, folder: &mut F) -> FnSig<'tcx> where F: TypeFolder<'tcx>

impl<'a, 'tcx> Relate<'a, 'tcx> for FnSig<'tcx> where 'tcx: 'a

fn relate<R>(relation: &mut R, a: &FnSig<'tcx>, b: &FnSig<'tcx>) -> Result<FnSig<'tcx>, type_err<'tcx>> where R: TypeRelation<'a, 'tcx>

impl<'tcx> Repr<'tcx> for FnSig<'tcx>

fn repr(&self, tcx: &ctxt<'tcx>) -> String

Derived Implementations

impl<'tcx> Hash for FnSig<'tcx>

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

impl<'tcx> Eq for FnSig<'tcx>

impl<'tcx> PartialEq<FnSig<'tcx>> for FnSig<'tcx>

fn eq(&self, __arg_0: &FnSig<'tcx>) -> bool

fn ne(&self, __arg_0: &FnSig<'tcx>) -> bool

impl<'tcx> Clone for FnSig<'tcx>

fn clone(&self) -> FnSig<'tcx>

fn clone_from(&mut self, source: &Self)