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