Struct syntax::ast::ArmExperimental [-]  [+] [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 Show for Arm

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

impl<__S: Writer> Hash<__S> for Arm

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for Arm

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for Arm

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

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)