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
fn_token: Fn
generics: Generics
paren_token: Paren
inputs: Punctuated<FnArg, Comma>
variadic: Option<Dot3>
output: ReturnType
Trait Implementations
impl Debug for FnDecl
[src]
impl Debug for FnDecl
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for FnDecl
[src]
impl Eq for FnDecl
impl PartialEq for FnDecl
[src]
impl PartialEq for FnDecl
fn eq(&self, other: &FnDecl) -> bool
[src]
fn eq(&self, other: &FnDecl) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FnDecl) -> bool
[src]
fn ne(&self, other: &FnDecl) -> bool
This method tests for !=
.
impl Hash for FnDecl
[src]
impl Hash for FnDecl
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for FnDecl
[src]
impl Clone for FnDecl