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

pub struct Variant_ {
    pub name: Ident,
    pub attrs: Vec<Attribute>,
    pub kind: VariantKind,
    pub id: NodeId,
    pub disr_expr: Option<P<Expr>>,
    pub vis: Visibility,
}

Fields

name
attrs
kind
id
disr_expr
vis

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_, Error>

impl Encodable for Variant_

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

impl Eq for Variant_

fn assert_receiver_is_total_eq(&self)

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)