Struct syn::Arm
[−]
[src]
pub struct Arm { pub attrs: Vec<Attribute>, pub pats: Punctuated<Pat, Or>, pub guard: Option<(If, Box<Expr>)>, pub rocket_token: Rocket, pub body: Box<Expr>, pub comma: Option<Comma>, }
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>
pats: Punctuated<Pat, Or>
guard: Option<(If, Box<Expr>)>
rocket_token: Rocket
body: Box<Expr>
comma: Option<Comma>
Trait Implementations
impl Synom for Arm
[src]
impl ToTokens for Arm
[src]
fn to_tokens(&self, tokens: &mut Tokens)
[src]
Write self
to the given Tokens
. Read more
fn into_tokens(self) -> Tokens
[src]
Convert self
directly into a Tokens
object. Read more