Struct semantic_analyzer::types::FunctionStatement
source · pub struct FunctionStatement {
pub name: FunctionName,
pub parameters: Vec<FunctionParameter>,
pub result_type: Type,
pub body: Vec<BodyStatement>,
}Expand description
Function statement
Function statement is basic type that represent function itself. The basic function struct elements:
- function name
- function parameters
- function result type
- function body statements
Fields§
§name: FunctionNameFunction name
parameters: Vec<FunctionParameter>Function parameters
result_type: TypeFunction result type
body: Vec<BodyStatement>Function body statements
Trait Implementations§
source§impl Clone for FunctionStatement
impl Clone for FunctionStatement
source§fn clone(&self) -> FunctionStatement
fn clone(&self) -> FunctionStatement
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 FunctionStatement
impl Debug for FunctionStatement
source§impl<E: ExtendedExpression> From<FunctionStatement<'_, E>> for FunctionStatement
impl<E: ExtendedExpression> From<FunctionStatement<'_, E>> for FunctionStatement
source§fn from(value: FunctionStatement<'_, E>) -> Self
fn from(value: FunctionStatement<'_, E>) -> Self
Converts to this type from the input type.
source§impl PartialEq for FunctionStatement
impl PartialEq for FunctionStatement
source§fn eq(&self, other: &FunctionStatement) -> bool
fn eq(&self, other: &FunctionStatement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for FunctionStatement
Auto Trait Implementations§
impl RefUnwindSafe for FunctionStatement
impl Send for FunctionStatement
impl Sync for FunctionStatement
impl Unpin for FunctionStatement
impl UnwindSafe for FunctionStatement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more