Struct devise::syn::Arm [−][src]
pub struct Arm {
pub attrs: Vec<Attribute, Global>,
pub leading_vert: Option<Or>,
pub pats: Punctuated<Pat, Or>,
pub guard: Option<(If, Box<Expr, Global>)>,
pub fat_arrow_token: FatArrow,
pub body: Box<Expr, Global>,
pub comma: Option<Comma>,
}
Expand description
One arm of a match
expression: 0...10 => { return true; }
.
As in:
ⓘ
match n {
0...10 => {
return true;
}
// ...
}
This type is available if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute, Global>
leading_vert: Option<Or>
pats: Punctuated<Pat, Or>
guard: Option<(If, Box<Expr, Global>)>
fat_arrow_token: FatArrow
body: Box<Expr, Global>
comma: Option<Comma>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Arm
impl UnwindSafe for Arm
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more