Struct lang_c::ast::FunctionDefinition
source · pub struct FunctionDefinition {
pub specifiers: Vec<Node<DeclarationSpecifier>>,
pub declarator: Node<Declarator>,
pub declarations: Vec<Node<Declaration>>,
pub statement: Node<Statement>,
}
Expand description
Function definition
(C11 6.9.1)
Fields§
§specifiers: Vec<Node<DeclarationSpecifier>>
Return type of the function, possibly mixed with other specifiers
declarator: Node<Declarator>
Contains function name and parameter list
declarations: Vec<Node<Declaration>>
K&R style parameter type definitions (C11 6.9.1 §6)
statement: Node<Statement>
Body of the function.
Trait Implementations§
source§impl Clone for FunctionDefinition
impl Clone for FunctionDefinition
source§fn clone(&self) -> FunctionDefinition
fn clone(&self) -> FunctionDefinition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FunctionDefinition
impl Debug for FunctionDefinition
source§impl PartialEq<FunctionDefinition> for FunctionDefinition
impl PartialEq<FunctionDefinition> for FunctionDefinition
source§fn eq(&self, other: &FunctionDefinition) -> bool
fn eq(&self, other: &FunctionDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.