Enum move_lang::hlir::ast::Statement_
source · pub enum Statement_ {
Command(Command),
IfElse {
cond: Box<Exp>,
if_block: Block,
else_block: Block,
},
While {
cond: (Block, Box<Exp>),
block: Block,
},
Loop {
block: Block,
has_break: bool,
},
}
Variants§
Trait Implementations§
source§impl Clone for Statement_
impl Clone for Statement_
source§fn clone(&self) -> Statement_
fn clone(&self) -> Statement_
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 Statement_
impl Debug for Statement_
source§impl PartialEq<Statement_> for Statement_
impl PartialEq<Statement_> for Statement_
source§fn eq(&self, other: &Statement_) -> bool
fn eq(&self, other: &Statement_) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.