Struct rustc_hir::hir::Variant [−][src]
pub struct Variant<'hir> {
pub ident: Ident,
pub id: HirId,
pub data: VariantData<'hir>,
pub disr_expr: Option<AnonConst>,
pub span: Span,
}Fields
ident: IdentExpand description
Name of the variant.
id: HirIdExpand description
Id of the variant (not the constructor, see VariantData::ctor_hir_id()).
data: VariantData<'hir>Expand description
Fields and constructor id of the variant.
disr_expr: Option<AnonConst>Expand description
Explicit discriminant (e.g., Foo = 1).
span: SpanExpand description
Span
Trait Implementations
impl<'hir, __CTX> HashStable<__CTX> for Variant<'hir> where
__CTX: HashStableContext, [src]
impl<'hir, __CTX> HashStable<__CTX> for Variant<'hir> where
__CTX: HashStableContext, [src]