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