Struct syntex_syntax::ast::Variant_ [] [src]

pub struct Variant_ {
    pub name: Ident,
    pub attrs: Vec<Attribute>,
    pub data: VariantData,
    pub disr_expr: Option<P<Expr>>,
}

Fields

name
attrs
data
disr_expr

Explicit discriminant, eg Foo = 1

Trait Implementations

Derived Implementations

impl Debug for Variant_

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

impl Hash for Variant_

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

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

impl Decodable for Variant_

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

impl Encodable for Variant_

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

impl Eq for Variant_

impl PartialEq for Variant_

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

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

impl Clone for Variant_

fn clone(&self) -> Variant_

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