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 TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for Arm
[src]

Formats the value using the given formatter. Read more

impl Eq for Arm
[src]

impl PartialEq for Arm
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Arm
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. 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