pub struct WhileStmt<'a> {
pub keyword: Slice<'a>,
pub open_paren: Slice<'a>,
pub test: Expr<'a>,
pub close_paren: Slice<'a>,
pub body: Box<Stmt<'a>>,
}
Expand description
A while loop
while (false) {
}
var i = 0;
while (i < 100) {
if (Math.floor(Math.random() * 100) > 50) {
i--;
} else {
i += 5;
}
}
Fields
keyword: Slice<'a>
open_paren: Slice<'a>
test: Expr<'a>
close_paren: Slice<'a>
body: Box<Stmt<'a>>
Trait Implementations
sourceimpl<'a> PartialEq<WhileStmt<'a>> for WhileStmt<'a>
impl<'a> PartialEq<WhileStmt<'a>> for WhileStmt<'a>
impl<'a> StructuralPartialEq for WhileStmt<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for WhileStmt<'a>
impl<'a> Send for WhileStmt<'a>
impl<'a> Sync for WhileStmt<'a>
impl<'a> Unpin for WhileStmt<'a>
impl<'a> UnwindSafe for WhileStmt<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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