Struct rustc_lint::middle::ty::VariantInfo
[−]
[src]
pub struct VariantInfo<'tcx> {
pub args: Vec<&'tcx TyS<'tcx>>,
pub arg_names: Option<Vec<Name>>,
pub ctor_ty: Option<&'tcx TyS<'tcx>>,
pub name: Name,
pub id: DefId,
pub disr_val: u64,
pub vis: Visibility,
}Unstable
Fields
args | Unstable |
arg_names | Unstable |
ctor_ty | Unstable |
name | Unstable |
id | Unstable |
disr_val | Unstable |
vis | Unstable |
Methods
impl<'tcx> VariantInfo<'tcx>
fn from_ast_variant(cx: &ctxt<'tcx>, ast_variant: &Spanned<Variant_>, discriminant: u64) -> VariantInfo<'tcx>
Unstable
Creates a new VariantInfo from the corresponding ast representation.
Does not do any caching of the value in the type context.