Enum semantic_analyzer::types::IfBodyStatement
source · pub enum IfBodyStatement {
LetBinding(LetBinding),
Binding(Binding),
FunctionCall(FunctionCall),
If(IfStatement),
Loop(Vec<LoopBodyStatement>),
Return(Expression),
}
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 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 IfBodyStatement
impl Debug for IfBodyStatement
source§impl From<IfBodyStatement<'_>> for IfBodyStatement
impl From<IfBodyStatement<'_>> for IfBodyStatement
source§fn from(value: IfBodyStatement<'_>) -> Self
fn from(value: IfBodyStatement<'_>) -> Self
Converts to this type from the input type.
source§impl PartialEq<IfBodyStatement> for IfBodyStatement
impl PartialEq<IfBodyStatement> for IfBodyStatement
source§fn eq(&self, other: &IfBodyStatement) -> bool
fn eq(&self, other: &IfBodyStatement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IfBodyStatement
Auto Trait Implementations§
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