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: FunctionName
Function name
parameters: Vec<FunctionParameter>
Function parameters
result_type: Type
Function 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 duplicate 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<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<FunctionStatement<'_, I, E>> for FunctionStatement
impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<FunctionStatement<'_, I, E>> for FunctionStatement
Source§fn from(value: FunctionStatement<'_, I, E>) -> Self
fn from(value: FunctionStatement<'_, I, E>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FunctionStatement
impl PartialEq for FunctionStatement
impl StructuralPartialEq for FunctionStatement
Auto Trait Implementations§
impl Freeze for FunctionStatement
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