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]

[src]

[src]

Trait Implementations

impl Clone for FnDecl
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for FnDecl
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for FnDecl
[src]

impl Encodable for FnDecl
[src]

[src]

impl Decodable for FnDecl
[src]

[src]

impl Hash for FnDecl
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for FnDecl
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for FnDecl

impl !Sync for FnDecl