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