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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for Arm
[src]

impl Decodable for Arm
[src]

impl Debug for Arm
[src]

Formats the value using the given formatter. Read more

impl HasAttrs for Arm
[src]

Important traits for &'a [u8]

impl ToTokens for Arm
[src]

Important traits for Vec<u8>

Auto Trait Implementations

impl !Send for Arm

impl !Sync for Arm