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>,
}

represents one arm of a 'match'

Fields

attrs
pats
guard
body

Trait Implementations

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, __D::Error>

impl Encodable for Arm

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

impl Eq for Arm

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)