pub enum BodyStatement {
LetBinding(LetBinding),
Binding(Binding),
FunctionCall(FunctionCall),
If(IfStatement),
Loop(Vec<LoopBodyStatement>),
Expression(Expression),
Return(Expression),
}
Expand description
§Body statement
Statement of body. Body is basic entity for functions and represent basic functions elements.
Variants§
LetBinding(LetBinding)
Binding(Binding)
FunctionCall(FunctionCall)
If(IfStatement)
Loop(Vec<LoopBodyStatement>)
Expression(Expression)
Return(Expression)
Trait Implementations§
Source§impl Clone for BodyStatement
impl Clone for BodyStatement
Source§fn clone(&self) -> BodyStatement
fn clone(&self) -> BodyStatement
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 BodyStatement
impl Debug for BodyStatement
Source§impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<BodyStatement<'_, I, E>> for BodyStatement
impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<BodyStatement<'_, I, E>> for BodyStatement
Source§fn from(value: BodyStatement<'_, I, E>) -> Self
fn from(value: BodyStatement<'_, I, E>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BodyStatement
impl PartialEq for BodyStatement
impl StructuralPartialEq for BodyStatement
Auto Trait Implementations§
impl Freeze for BodyStatement
impl RefUnwindSafe for BodyStatement
impl Send for BodyStatement
impl Sync for BodyStatement
impl Unpin for BodyStatement
impl UnwindSafe for BodyStatement
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