Struct ressa::node::DoWhileStatement
source · pub struct DoWhileStatement {
pub test: Expression,
pub body: Box<Statement>,
}
Expand description
A while loop that executes its body first
do {
console.log('at least once')
} while (Math.floor(Math.random() * 100) < 75)
Fields
test: Expression
body: Box<Statement>
Implementations
sourceimpl DoWhileStatement
impl DoWhileStatement
pub fn new(test: Expression, body: Statement) -> Self
Trait Implementations
sourceimpl Clone for DoWhileStatement
impl Clone for DoWhileStatement
sourcefn clone(&self) -> DoWhileStatement
fn clone(&self) -> DoWhileStatement
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 moresourceimpl Debug for DoWhileStatement
impl Debug for DoWhileStatement
sourceimpl PartialEq<DoWhileStatement> for DoWhileStatement
impl PartialEq<DoWhileStatement> for DoWhileStatement
sourcefn eq(&self, other: &DoWhileStatement) -> bool
fn eq(&self, other: &DoWhileStatement) -> bool
impl StructuralPartialEq for DoWhileStatement
Auto Trait Implementations
impl RefUnwindSafe for DoWhileStatement
impl Send for DoWhileStatement
impl Sync for DoWhileStatement
impl Unpin for DoWhileStatement
impl UnwindSafe for DoWhileStatement
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