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 !Send for ExprMatch
impl !Sync for ExprMatch
impl Unpin for ExprMatch
impl UnwindSafe for ExprMatch
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