Struct syn::FnDecl
[−]
[src]
pub struct FnDecl {
pub inputs: Vec<FnArg>,
pub output: FunctionRetTy,
pub variadic: bool,
}Header (not the body) of a function declaration.
E.g. fn foo(bar: baz)
Fields
inputs: Vec<FnArg>
output: FunctionRetTy
variadic: bool
Trait Implementations
impl Debug for FnDecl[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for FnDecl[src]
fn clone(&self) -> FnDecl[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for FnDecl[src]
impl PartialEq for FnDecl[src]
fn eq(&self, __arg_0: &FnDecl) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FnDecl) -> bool[src]
This method tests for !=.