Struct syntax::ast::FnDecl[][src]

pub struct FnDecl {
    pub inputs: Vec<Arg>,
    pub output: FunctionRetTy,
    pub variadic: bool,
}

Header (not the body) of a function declaration.

E.g. fn foo(bar: baz)

Fields

Methods

impl FnDecl
[src]

Trait Implementations

impl Clone for FnDecl
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for FnDecl
[src]

impl Decodable for FnDecl
[src]

impl Debug for FnDecl
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for FnDecl

impl !Sync for FnDecl