pub struct WhileStatement<'s> {
pub while_: &'s Token<'s>,
pub open: &'s Token<'s>,
pub condition: Box<Expression<'s>>,
pub close: &'s Token<'s>,
pub body: Box<StatementType<'s>>,
}Expand description
A while statement.
Grammar: while ( Expression ) StatementType
Fields§
§while_: &'s Token<'s>§open: &'s Token<'s>§condition: Box<Expression<'s>>§close: &'s Token<'s>§body: Box<StatementType<'s>>Trait Implementations§
Source§impl<'s> Clone for WhileStatement<'s>
impl<'s> Clone for WhileStatement<'s>
Source§fn clone(&self) -> WhileStatement<'s>
fn clone(&self) -> WhileStatement<'s>
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 moreAuto Trait Implementations§
impl<'s> Freeze for WhileStatement<'s>
impl<'s> RefUnwindSafe for WhileStatement<'s>
impl<'s> Send for WhileStatement<'s>
impl<'s> Sync for WhileStatement<'s>
impl<'s> Unpin for WhileStatement<'s>
impl<'s> UnwindSafe for WhileStatement<'s>
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