Struct syn::ExprMatch [−][src]
pub struct ExprMatch {
pub attrs: Vec<Attribute>,
pub match_token: Match,
pub expr: Box<Expr>,
pub brace_token: Brace,
pub arms: Vec<Arm>,
}
Expand description
A match
expression: match n { Some(n) => {}, None => {} }
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
match_token: Match
expr: Box<Expr>
brace_token: Brace
arms: Vec<Arm>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExprMatch
impl UnwindSafe for ExprMatch
Blanket Implementations
Mutably borrows from an owned value. Read more