[−][src]Struct rustc_hir::FnDecl

pub struct FnDecl<'hir> {
    pub inputs: &'hir [Ty<'hir>],
    pub output: FnRetTy<'hir>,
    pub c_variadic: bool,
    pub implicit_self: ImplicitSelfKind,
}

Represents the header (not the body) of a function declaration.

Fields

inputs: &'hir [Ty<'hir>]

The types of the function's parameters.

Additional argument data is stored in the function's body.

output: FnRetTy<'hir>c_variadic: boolimplicit_self: ImplicitSelfKind

Does the function have an implicit self?

Trait Implementations

impl<'hir> Debug for FnDecl<'hir>[src]

impl<'hir, __CTX> HashStable<__CTX> for FnDecl<'hir> where
    __CTX: HashStableContext, 
[src]

Auto Trait Implementations

impl<'hir> !RefUnwindSafe for FnDecl<'hir>

impl<'hir> !Send for FnDecl<'hir>

impl<'hir> !Sync for FnDecl<'hir>

impl<'hir> Unpin for FnDecl<'hir>

impl<'hir> !UnwindSafe for FnDecl<'hir>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.