Struct xlang_syntax::ast::While
source · [−]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: Loclabel: Option<Ident<'input>>cond: Box<Expr<'input>>block: Block<'input>Implementations
Trait Implementations
sourceimpl<'input> PartialEq<While<'input>> for While<'input>
impl<'input> PartialEq<While<'input>> for While<'input>
impl<'input> StructuralPartialEq for While<'input>
Auto Trait Implementations
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
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