Struct syntex_syntax::ast::Arm [] [src]

pub struct Arm {
    pub attrs: Vec<Attribute>,
    pub pats: Vec<P<Pat>>,
    pub guard: Option<P<Expr>>,
    pub body: P<Expr>,
}

An arm of a 'match'.

E.g. 0...10 => { println!("match!") } as in

match n {
    0...10 => { println!("match!") },
    // ..
}

Fields

Trait Implementations

impl Clone for Arm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 Eq for Arm
[src]

impl Encodable for Arm
[src]

impl Decodable for Arm
[src]

impl Hash for Arm
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Arm
[src]

Formats the value using the given formatter.

impl HasAttrs for Arm
[src]

impl ToTokens for Arm
[src]