Struct syn::ExprIfLet [−][src]
An if let
expression with an optional else
block: if let pat = expr { ... } else { ... }
.
The else
branch expression may only be an If
, IfLet
, or
Block
expression, not any of the other types of expression.
This type is available if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
if_token: If
let_token: Let
pats: Punctuated<Pat, Or>
eq_token: Eq
expr: Box<Expr>
then_branch: Block
else_branch: Option<(Else, Box<Expr>)>
Trait Implementations
impl Synom for ExprIfLet
[src]
[+]
impl Synom for ExprIfLet
impl ToTokens for ExprIfLet
[src]
[+]
impl ToTokens for ExprIfLet
impl Clone for ExprIfLet
[src]
[+]
impl Clone for ExprIfLet
impl From<ExprIfLet> for Expr
[src]
[+]
impl From<ExprIfLet> for Expr