pub struct ExprWhileLet {
pub attrs: Vec<Attribute>,
pub label: Option<Label>,
pub while_token: While,
pub let_token: Let,
pub pat: Box<Pat>,
pub eq_token: Eq,
pub expr: Box<Expr>,
pub body: Block,
}
Expand description
A while-let loop: while let pat = expr { ... }
.
This type is available if Syn is built with the "full"
feature.
Fields§
§attrs: Vec<Attribute>
§label: Option<Label>
§while_token: While
§let_token: Let
§pat: Box<Pat>
§eq_token: Eq
§expr: Box<Expr>
§body: Block
Trait Implementations§
Source§impl Clone for ExprWhileLet
impl Clone for ExprWhileLet
Source§fn clone(&self) -> ExprWhileLet
fn clone(&self) -> ExprWhileLet
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 ExprWhileLet
impl Debug for ExprWhileLet
Source§impl From<ExprWhileLet> for Expr
impl From<ExprWhileLet> for Expr
Source§fn from(e: ExprWhileLet) -> Expr
fn from(e: ExprWhileLet) -> Expr
Converts to this type from the input type.
Source§impl Hash for ExprWhileLet
impl Hash for ExprWhileLet
Source§impl PartialEq for ExprWhileLet
impl PartialEq for ExprWhileLet
Source§impl Synom for ExprWhileLet
impl Synom for ExprWhileLet
Source§impl ToTokens for ExprWhileLet
impl ToTokens for ExprWhileLet
impl Eq for ExprWhileLet
impl StructuralPartialEq for ExprWhileLet
Auto Trait Implementations§
impl Freeze for ExprWhileLet
impl RefUnwindSafe for ExprWhileLet
impl !Send for ExprWhileLet
impl !Sync for ExprWhileLet
impl Unpin for ExprWhileLet
impl UnwindSafe for ExprWhileLet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.