pub struct WhileStatement {
pub decorators: Vec<Decorator>,
pub is_declare: bool,
pub test: Expression,
pub body: Box<Statement>,
pub span: Range<usize>,
}Expand description
Represents a while statement.
Fields§
§decorators: Vec<Decorator>Decorators associated with the statement.
is_declare: boolWhether the statement is declared with declare.
test: ExpressionThe condition being tested.
body: Box<Statement>The statement to execute as long as the condition is true.
span: Range<usize>Source span of the statement.
Trait Implementations§
Source§impl Clone for WhileStatement
impl Clone for WhileStatement
Source§fn clone(&self) -> WhileStatement
fn clone(&self) -> WhileStatement
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 moreSource§impl Debug for WhileStatement
impl Debug for WhileStatement
Source§impl<'de> Deserialize<'de> for WhileStatement
impl<'de> Deserialize<'de> for WhileStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WhileStatement
impl RefUnwindSafe for WhileStatement
impl Send for WhileStatement
impl Sync for WhileStatement
impl Unpin for WhileStatement
impl UnsafeUnpin 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