pub enum IterationStatement {
While {
condition: Expression,
statement: Box<Statement>,
span: Range<usize>,
},
DoWhile {
statement: Box<Statement>,
condition: Expression,
span: Range<usize>,
},
For {
init: Option<Expression>,
condition: Option<Expression>,
update: Option<Expression>,
statement: Box<Statement>,
span: Range<usize>,
},
}Expand description
迭代语句
Variants§
While
DoWhile
For
Implementations§
Trait Implementations§
Source§impl Clone for IterationStatement
impl Clone for IterationStatement
Source§fn clone(&self) -> IterationStatement
fn clone(&self) -> IterationStatement
Returns a duplicate 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 IterationStatement
impl Debug for IterationStatement
Source§impl PartialEq for IterationStatement
impl PartialEq for IterationStatement
impl StructuralPartialEq for IterationStatement
Auto Trait Implementations§
impl Freeze for IterationStatement
impl RefUnwindSafe for IterationStatement
impl Send for IterationStatement
impl Sync for IterationStatement
impl Unpin for IterationStatement
impl UnwindSafe for IterationStatement
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