Struct syn::FnDecl [] [src]

pub struct FnDecl {
    pub fn_token: Fn,
    pub generics: Generics,
    pub paren_token: Paren,
    pub inputs: Punctuated<FnArg, Comma>,
    pub variadic: Option<Dot3>,
    pub output: ReturnType,
}

Header of a function declaration, without including the body.

This type is available if Syn is built with the "full" feature.

Fields

Trait Implementations

impl Debug for FnDecl
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for FnDecl
[src]

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 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 Clone for FnDecl
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for FnDecl

impl !Sync for FnDecl