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.


Trait Implementations

impl Debug for FnDecl


Formats the value using the given formatter. Read more

impl Eq for FnDecl

impl PartialEq for FnDecl


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


This method tests for !=.

impl Hash for FnDecl


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


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

impl Clone for FnDecl


Returns a copy of the value. Read more


Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for FnDecl

impl !Sync for FnDecl