pub struct ExprWhile {
pub attrs: Vec<Attribute>,
pub label: Option<Label>,
pub while_token: While,
pub cond: Box<Expr>,
pub body: Block,
}
Expand description
A while loop: while expr { ... }
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
label: Option<Label>
while_token: While
cond: Box<Expr>
body: Block
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExprWhile
impl !Send for ExprWhile
impl !Sync for ExprWhile
impl Unpin for ExprWhile
impl UnwindSafe for ExprWhile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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