pub struct WhileStat<'a> {
pub while_: TokenReference<'a>,
pub condition: Box<Expr<'a>>,
pub do_: TokenReference<'a>,
pub block: Box<Block<'a>>,
pub end: TokenReference<'a>,
}Expand description
A while statement.
Fields§
§while_: TokenReference<'a>A reference to the Symbol::While token.
condition: Box<Expr<'a>>The loop condition.
do_: TokenReference<'a>A reference to the Symbol::Do token.
block: Box<Block<'a>>The loop body.
end: TokenReference<'a>A reference to the Symbol::End token.
Trait Implementations§
Source§impl<'a> AstDescend<'a> for WhileStat<'a>
impl<'a> AstDescend<'a> for WhileStat<'a>
fn descend_mut<T: VisitorMut<'a>>(&mut self, visitor: &mut T)
Auto Trait Implementations§
impl<'a> Freeze for WhileStat<'a>
impl<'a> RefUnwindSafe for WhileStat<'a>
impl<'a> Send for WhileStat<'a>
impl<'a> Sync for WhileStat<'a>
impl<'a> Unpin for WhileStat<'a>
impl<'a> UnwindSafe for WhileStat<'a>
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