pub struct WhileStatement {
pub condition: Expression,
pub body: Box<Statement>,
}Fields§
§condition: Expression§body: Box<Statement>Implementations§
Source§impl WhileStatement
impl WhileStatement
pub fn new(condition: Expression, body: Statement) -> WhileStatement
pub fn is_valid(&self) -> bool
Trait Implementations§
Source§impl Clone for WhileStatement
impl Clone for WhileStatement
Source§fn clone(&self) -> WhileStatement
fn clone(&self) -> WhileStatement
Returns a copy 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 WhileStatement
impl Debug for WhileStatement
Auto Trait Implementations§
impl Freeze for WhileStatement
impl RefUnwindSafe for WhileStatement
impl Send for WhileStatement
impl Sync for WhileStatement
impl Unpin for WhileStatement
impl UnwindSafe for WhileStatement
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