pub struct WhileStmt {
pub span: Span,
pub condition: Expr,
pub body: Box<Stmt>,
}Expand description
One while statement.
Fields§
§span: SpanSource span covering the whole statement.
condition: ExprLoop condition.
body: Box<Stmt>Loop body.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WhileStmt
impl<'de> Deserialize<'de> for WhileStmt
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
impl StructuralPartialEq for WhileStmt
Auto Trait Implementations§
impl Freeze for WhileStmt
impl RefUnwindSafe for WhileStmt
impl Send for WhileStmt
impl Sync for WhileStmt
impl Unpin for WhileStmt
impl UnsafeUnpin for WhileStmt
impl UnwindSafe for WhileStmt
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