pub struct While<'input> {
pub loc: Loc,
pub label: Option<Ident<'input>>,
pub cond: Box<Expr<'input>>,
pub block: Block<'input>,
}
Expand description
A while
statement.
Fields§
§loc: Loc
§label: Option<Ident<'input>>
§cond: Box<Expr<'input>>
§block: Block<'input>
Implementations§
Trait Implementations§
impl<'input> StructuralPartialEq for While<'input>
Auto Trait Implementations§
impl<'input> Freeze for While<'input>
impl<'input> RefUnwindSafe for While<'input>
impl<'input> Send for While<'input>
impl<'input> Sync for While<'input>
impl<'input> Unpin for While<'input>
impl<'input> UnwindSafe for While<'input>
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