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
inputs: Vec<Arg>
output: FunctionRetTy
variadic: bool
Methods
impl FnDecl[src]
impl FnDeclTrait Implementations
impl Clone for FnDecl[src]
impl Clone for FnDeclfn clone(&self) -> FnDecl[src]
fn clone(&self) -> FnDeclReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Encodable for FnDecl[src]
impl Encodable for FnDeclimpl Decodable for FnDecl[src]
impl Decodable for FnDeclimpl Debug for FnDecl[src]
impl Debug for FnDecl