Struct semantic_analyzer::types::FunctionStatement
source · pub struct FunctionStatement {
pub name: FunctionName,
pub parameters: Vec<FunctionParameter>,
pub result_type: Type,
pub body: Vec<BodyStatement>,
}
Fields§
§name: FunctionName
§parameters: Vec<FunctionParameter>
§result_type: Type
§body: Vec<BodyStatement>
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 From<FunctionStatement<'_>> for FunctionStatement
impl From<FunctionStatement<'_>> for FunctionStatement
source§fn from(value: FunctionStatement<'_>) -> Self
fn from(value: FunctionStatement<'_>) -> Self
Converts to this type from the input type.
source§impl PartialEq<FunctionStatement> for FunctionStatement
impl PartialEq<FunctionStatement> 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