Struct 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 123 {
    0...10 => { println!("match!") },
    _ => { println!("no match!") },
}

Fields

Trait Implementations

impl Clone for Arm
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Arm
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Arm
[src]

impl Encodable for Arm
[src]

[src]

impl Decodable for Arm
[src]

[src]

impl Hash for Arm
[src]

[src]

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

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Arm
[src]

[src]

Formats the value using the given formatter. Read more

impl HasAttrs for Arm
[src]

Important traits for &'a mut [u8]
[src]

[src]

impl ToTokens for Arm
[src]

Important traits for Vec<u8>
[src]

Auto Trait Implementations

impl !Send for Arm

impl !Sync for Arm