Struct syn::Arm[][src]

pub struct Arm {
    pub attrs: Vec<Attribute>,
    pub leading_vert: Option<Or>,
    pub pats: Punctuated<Pat, Or>,
    pub guard: Option<(If, Box<Expr>)>,
    pub fat_arrow_token: FatArrow,
    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

Trait Implementations

impl Synom for Arm
[src]

A short name of the type being parsed. Read more

impl ToTokens for Arm
[src]

Write self to the given Tokens. Read more

Convert self directly into a Tokens object. Read more

impl Clone for Arm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Arm

impl !Sync for Arm