Struct rustc_metadata::rmeta::LazyTables
source · pub(crate) struct LazyTables {Show 59 fields
is_intrinsic: LazyTable<DefIndex, bool>,
is_macro_rules: LazyTable<DefIndex, bool>,
is_type_alias_impl_trait: LazyTable<DefIndex, bool>,
attr_flags: LazyTable<DefIndex, AttrFlags>,
attributes: LazyTable<DefIndex, Option<LazyArray<Attribute>>>,
children: LazyTable<DefIndex, Option<LazyArray<DefIndex>>>,
opt_def_kind: LazyTable<DefIndex, Option<DefKind>>,
visibility: LazyTable<DefIndex, Option<LazyValue<Visibility<DefIndex>>>>,
def_span: LazyTable<DefIndex, Option<LazyValue<Span>>>,
def_ident_span: LazyTable<DefIndex, Option<LazyValue<Span>>>,
lookup_stability: LazyTable<DefIndex, Option<LazyValue<Stability>>>,
lookup_const_stability: LazyTable<DefIndex, Option<LazyValue<ConstStability>>>,
lookup_default_body_stability: LazyTable<DefIndex, Option<LazyValue<DefaultBodyStability>>>,
lookup_deprecation_entry: LazyTable<DefIndex, Option<LazyValue<Deprecation>>>,
explicit_item_bounds: LazyTable<DefIndex, Option<LazyArray<(Predicate<'static>, Span)>>>,
explicit_predicates_of: LazyTable<DefIndex, Option<LazyValue<GenericPredicates<'static>>>>,
generics_of: LazyTable<DefIndex, Option<LazyValue<Generics>>>,
inferred_outlives_of: LazyTable<DefIndex, Option<LazyArray<(Clause<'static>, Span)>>>,
super_predicates_of: LazyTable<DefIndex, Option<LazyValue<GenericPredicates<'static>>>>,
type_of: LazyTable<DefIndex, Option<LazyValue<Ty<'static>>>>,
variances_of: LazyTable<DefIndex, Option<LazyArray<Variance>>>,
fn_sig: LazyTable<DefIndex, Option<LazyValue<EarlyBinder<PolyFnSig<'static>>>>>,
codegen_fn_attrs: LazyTable<DefIndex, Option<LazyValue<CodegenFnAttrs>>>,
impl_trait_ref: LazyTable<DefIndex, Option<LazyValue<EarlyBinder<TraitRef<'static>>>>>,
const_param_default: LazyTable<DefIndex, Option<LazyValue<EarlyBinder<Const<'static>>>>>,
object_lifetime_default: LazyTable<DefIndex, Option<LazyValue<ObjectLifetimeDefault>>>,
optimized_mir: LazyTable<DefIndex, Option<LazyValue<Body<'static>>>>,
mir_for_ctfe: LazyTable<DefIndex, Option<LazyValue<Body<'static>>>>,
mir_generator_witnesses: LazyTable<DefIndex, Option<LazyValue<GeneratorLayout<'static>>>>,
promoted_mir: LazyTable<DefIndex, Option<LazyValue<IndexVec<Promoted, Body<'static>>>>>,
thir_abstract_const: LazyTable<DefIndex, Option<LazyValue<Const<'static>>>>,
impl_parent: LazyTable<DefIndex, Option<RawDefId>>,
impl_polarity: LazyTable<DefIndex, Option<ImplPolarity>>,
constness: LazyTable<DefIndex, Option<Constness>>,
impl_defaultness: LazyTable<DefIndex, Option<Defaultness>>,
coerce_unsized_info: LazyTable<DefIndex, Option<LazyValue<CoerceUnsizedInfo>>>,
mir_const_qualif: LazyTable<DefIndex, Option<LazyValue<ConstQualifs>>>,
rendered_const: LazyTable<DefIndex, Option<LazyValue<String>>>,
asyncness: LazyTable<DefIndex, Option<IsAsync>>,
fn_arg_names: LazyTable<DefIndex, Option<LazyArray<Ident>>>,
generator_kind: LazyTable<DefIndex, Option<LazyValue<GeneratorKind>>>,
trait_def: LazyTable<DefIndex, Option<LazyValue<TraitDef>>>,
trait_item_def_id: LazyTable<DefIndex, Option<RawDefId>>,
inherent_impls: LazyTable<DefIndex, Option<LazyArray<DefIndex>>>,
expn_that_defined: LazyTable<DefIndex, Option<LazyValue<ExpnId>>>,
unused_generic_params: LazyTable<DefIndex, Option<LazyValue<UnusedGenericParams>>>,
params_in_repr: LazyTable<DefIndex, Option<LazyValue<BitSet<u32>>>>,
repr_options: LazyTable<DefIndex, Option<LazyValue<ReprOptions>>>,
def_keys: LazyTable<DefIndex, Option<LazyValue<DefKey>>>,
def_path_hashes: LazyTable<DefIndex, Option<DefPathHash>>,
proc_macro_quoted_spans: LazyTable<usize, Option<LazyValue<Span>>>,
generator_diagnostic_data: LazyTable<DefIndex, Option<LazyValue<GeneratorDiagnosticData<'static>>>>,
variant_data: LazyTable<DefIndex, Option<LazyValue<VariantData>>>,
assoc_container: LazyTable<DefIndex, Option<AssocItemContainer>>,
macro_definition: LazyTable<DefIndex, Option<LazyValue<DelimArgs>>>,
proc_macro: LazyTable<DefIndex, Option<MacroKind>>,
module_reexports: LazyTable<DefIndex, Option<LazyArray<ModChild>>>,
deduced_param_attrs: LazyTable<DefIndex, Option<LazyArray<DeducedParamAttrs>>>,
trait_impl_trait_tys: LazyTable<DefIndex, Option<LazyValue<FxHashMap<DefId, Ty<'static>>>>>,
}
Fields§
§is_intrinsic: LazyTable<DefIndex, bool>
§is_macro_rules: LazyTable<DefIndex, bool>
§is_type_alias_impl_trait: LazyTable<DefIndex, bool>
§attr_flags: LazyTable<DefIndex, AttrFlags>
§attributes: LazyTable<DefIndex, Option<LazyArray<Attribute>>>
§children: LazyTable<DefIndex, Option<LazyArray<DefIndex>>>
§opt_def_kind: LazyTable<DefIndex, Option<DefKind>>
§visibility: LazyTable<DefIndex, Option<LazyValue<Visibility<DefIndex>>>>
§def_span: LazyTable<DefIndex, Option<LazyValue<Span>>>
§def_ident_span: LazyTable<DefIndex, Option<LazyValue<Span>>>
§lookup_stability: LazyTable<DefIndex, Option<LazyValue<Stability>>>
§lookup_const_stability: LazyTable<DefIndex, Option<LazyValue<ConstStability>>>
§lookup_default_body_stability: LazyTable<DefIndex, Option<LazyValue<DefaultBodyStability>>>
§lookup_deprecation_entry: LazyTable<DefIndex, Option<LazyValue<Deprecation>>>
§explicit_item_bounds: LazyTable<DefIndex, Option<LazyArray<(Predicate<'static>, Span)>>>
§explicit_predicates_of: LazyTable<DefIndex, Option<LazyValue<GenericPredicates<'static>>>>
§generics_of: LazyTable<DefIndex, Option<LazyValue<Generics>>>
§inferred_outlives_of: LazyTable<DefIndex, Option<LazyArray<(Clause<'static>, Span)>>>
§super_predicates_of: LazyTable<DefIndex, Option<LazyValue<GenericPredicates<'static>>>>
§type_of: LazyTable<DefIndex, Option<LazyValue<Ty<'static>>>>
§variances_of: LazyTable<DefIndex, Option<LazyArray<Variance>>>
§fn_sig: LazyTable<DefIndex, Option<LazyValue<EarlyBinder<PolyFnSig<'static>>>>>
§codegen_fn_attrs: LazyTable<DefIndex, Option<LazyValue<CodegenFnAttrs>>>
§impl_trait_ref: LazyTable<DefIndex, Option<LazyValue<EarlyBinder<TraitRef<'static>>>>>
§const_param_default: LazyTable<DefIndex, Option<LazyValue<EarlyBinder<Const<'static>>>>>
§object_lifetime_default: LazyTable<DefIndex, Option<LazyValue<ObjectLifetimeDefault>>>
§optimized_mir: LazyTable<DefIndex, Option<LazyValue<Body<'static>>>>
§mir_for_ctfe: LazyTable<DefIndex, Option<LazyValue<Body<'static>>>>
§mir_generator_witnesses: LazyTable<DefIndex, Option<LazyValue<GeneratorLayout<'static>>>>
§promoted_mir: LazyTable<DefIndex, Option<LazyValue<IndexVec<Promoted, Body<'static>>>>>
§thir_abstract_const: LazyTable<DefIndex, Option<LazyValue<Const<'static>>>>
§impl_parent: LazyTable<DefIndex, Option<RawDefId>>
§impl_polarity: LazyTable<DefIndex, Option<ImplPolarity>>
§constness: LazyTable<DefIndex, Option<Constness>>
§impl_defaultness: LazyTable<DefIndex, Option<Defaultness>>
§coerce_unsized_info: LazyTable<DefIndex, Option<LazyValue<CoerceUnsizedInfo>>>
§mir_const_qualif: LazyTable<DefIndex, Option<LazyValue<ConstQualifs>>>
§rendered_const: LazyTable<DefIndex, Option<LazyValue<String>>>
§asyncness: LazyTable<DefIndex, Option<IsAsync>>
§fn_arg_names: LazyTable<DefIndex, Option<LazyArray<Ident>>>
§generator_kind: LazyTable<DefIndex, Option<LazyValue<GeneratorKind>>>
§trait_def: LazyTable<DefIndex, Option<LazyValue<TraitDef>>>
§trait_item_def_id: LazyTable<DefIndex, Option<RawDefId>>
§inherent_impls: LazyTable<DefIndex, Option<LazyArray<DefIndex>>>
§expn_that_defined: LazyTable<DefIndex, Option<LazyValue<ExpnId>>>
§unused_generic_params: LazyTable<DefIndex, Option<LazyValue<UnusedGenericParams>>>
§params_in_repr: LazyTable<DefIndex, Option<LazyValue<BitSet<u32>>>>
§repr_options: LazyTable<DefIndex, Option<LazyValue<ReprOptions>>>
§def_keys: LazyTable<DefIndex, Option<LazyValue<DefKey>>>
§def_path_hashes: LazyTable<DefIndex, Option<DefPathHash>>
§proc_macro_quoted_spans: LazyTable<usize, Option<LazyValue<Span>>>
§generator_diagnostic_data: LazyTable<DefIndex, Option<LazyValue<GeneratorDiagnosticData<'static>>>>
§variant_data: LazyTable<DefIndex, Option<LazyValue<VariantData>>>
§assoc_container: LazyTable<DefIndex, Option<AssocItemContainer>>
§macro_definition: LazyTable<DefIndex, Option<LazyValue<DelimArgs>>>
§proc_macro: LazyTable<DefIndex, Option<MacroKind>>
§module_reexports: LazyTable<DefIndex, Option<LazyArray<ModChild>>>
§deduced_param_attrs: LazyTable<DefIndex, Option<LazyArray<DeducedParamAttrs>>>
§trait_impl_trait_tys: LazyTable<DefIndex, Option<LazyValue<FxHashMap<DefId, Ty<'static>>>>>
Trait Implementations§
source§impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for LazyTables
impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for LazyTables
fn decode(__decoder: &mut DecodeContext<'__a, 'tcx>) -> Self
source§impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for LazyTables
impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for LazyTables
fn encode(&self, __encoder: &mut EncodeContext<'__a, 'tcx>)
Auto Trait Implementations§
impl RefUnwindSafe for LazyTables
impl Send for LazyTables
impl Sync for LazyTables
impl Unpin for LazyTables
impl UnwindSafe for LazyTables
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 944 bytes