Struct liva_parser::statement::declaration::function::Function [−][src]
pub struct Function<'a> {
pub name: Identifier<'a>,
pub parameters: Vec<Variable<'a>>,
pub block: Block<'a>,
}
Expand description
Represents a function declaration.
Fields
name: Identifier<'a>
Name of the function
parameters: Vec<Variable<'a>>
Parameter list, of the function
block: Block<'a>
Block contains all statements which are executed, when the function is called
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Function<'a>
impl<'a> UnwindSafe for Function<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more