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 PartialEq for FnDecl[src]
impl PartialEq for FnDeclfn eq(&self, other: &FnDecl) -> bool[src]
fn eq(&self, other: &FnDecl) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for FnDecl[src]
impl Eq for FnDeclimpl Encodable for FnDecl[src]
impl Encodable for FnDeclimpl Decodable for FnDecl[src]
impl Decodable for FnDeclimpl Hash for FnDecl[src]
impl Hash for FnDeclfn 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 Debug for FnDecl[src]
impl Debug for FnDecl