Enum move_compiler::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
Command(Command)
IfElse
While
Loop
Trait Implementations
sourceimpl Clone for Statement_
impl Clone for Statement_
sourcefn clone(&self) -> Statement_
fn clone(&self) -> Statement_
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Statement_
impl Debug for Statement_
sourceimpl PartialEq<Statement_> for Statement_
impl PartialEq<Statement_> for Statement_
sourcefn 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 ==
. Read more
impl StructuralPartialEq for Statement_
Auto Trait Implementations
impl RefUnwindSafe for Statement_
impl Send for Statement_
impl Sync for Statement_
impl Unpin for Statement_
impl UnwindSafe for Statement_
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more