Struct syntax::ast::ArmUnstable [-] [+] [src]

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

represents one arm of a 'match'

Fields

attrs
pats
guard
body

Trait Implementations

impl ToSource for Arm

fn to_source(&self) -> String

impl ToTokens for Arm

fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree>

Derived Implementations

impl Debug for Arm

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for Arm

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for Arm

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Arm, Error>

impl Encodable for Arm

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for Arm

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Arm

fn eq(&self, __arg_0: &Arm) -> bool

fn ne(&self, __arg_0: &Arm) -> bool

impl Clone for Arm

fn clone(&self) -> Arm

fn clone_from(&mut self, source: &Self)