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: BlockTrait 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 (const: unstable) · 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
impl Eq 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§fn eq(&self, other: &ExprWhileLet) -> bool
fn eq(&self, other: &ExprWhileLet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExprWhileLet
Source§impl Synom for ExprWhileLet
Available on crate feature full only.
impl Synom for ExprWhileLet
Available on crate feature
full only.Auto Trait Implementations§
impl !Send for ExprWhileLet
impl !Sync for ExprWhileLet
impl Freeze for ExprWhileLet
impl RefUnwindSafe for ExprWhileLet
impl Unpin for ExprWhileLet
impl UnsafeUnpin 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.