Struct syntax::ast::FnDeclUnstable [-] [+] [src]

pub struct FnDecl {
    pub inputs: Vec<Arg>,
    pub output: FunctionRetTy,
    pub variadic: bool,
}

represents the header (not the body) of a function declaration

Fields

inputs
output
variadic

Trait Implementations

Derived Implementations

impl Debug for FnDecl

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for FnDecl

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for FnDecl

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<FnDecl, Error>

impl Encodable for FnDecl

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for FnDecl

fn assert_receiver_is_total_eq(&self)

impl PartialEq for FnDecl

fn eq(&self, __arg_0: &FnDecl) -> bool

fn ne(&self, __arg_0: &FnDecl) -> bool

impl Clone for FnDecl

fn clone(&self) -> FnDecl

fn clone_from(&mut self, source: &Self)