pub struct Arena<'tcx> {Show 62 fields
pub dropless: DroplessArena,
layout: TypedArena<LayoutData<FieldIdx, VariantIdx>>,
proxy_coroutine_layout: TypedArena<CoroutineLayout<'tcx>>,
fn_abi: TypedArena<FnAbi<'tcx, Ty<'tcx>>>,
adt_def: TypedArena<AdtDefData>,
steal_thir: TypedArena<Steal<Thir<'tcx>>>,
steal_mir: TypedArena<Steal<Body<'tcx>>>,
mir: TypedArena<Body<'tcx>>,
steal_promoted: TypedArena<Steal<IndexVec<Promoted, Body<'tcx>>>>,
promoted: TypedArena<IndexVec<Promoted, Body<'tcx>>>,
typeck_results: TypedArena<TypeckResults<'tcx>>,
borrowck_result: TypedArena<FxIndexMap<LocalDefId, DefinitionSiteHiddenType<'tcx>>>,
resolver: TypedArena<Steal<ResolverAstLowering<'tcx>>>,
index_ast: TypedArena<IndexVec<LocalDefId, Steal<(Arc<ResolverAstLowering<'tcx>>, AstOwner)>>>,
crate_alone: TypedArena<Steal<Crate>>,
crate_for_resolver: TypedArena<Steal<(Crate, AttrVec)>>,
resolutions: TypedArena<ResolverGlobalCtxt>,
const_allocs: TypedArena<Allocation>,
region_scope_tree: TypedArena<ScopeTree>,
mir_keys: TypedArena<DefIdSet>,
dropck_outlives: TypedArena<Canonical<'tcx, QueryResponse<'tcx, DropckOutlivesResult<'tcx>>>>,
normalize_canonicalized_projection: TypedArena<Canonical<'tcx, QueryResponse<'tcx, NormalizationResult<'tcx>>>>,
implied_outlives_bounds: TypedArena<Canonical<'tcx, QueryResponse<'tcx, Vec<OutlivesBound<'tcx>>>>>,
dtorck_constraint: TypedArena<DropckConstraint<'tcx>>,
candidate_step: TypedArena<CandidateStep<'tcx>>,
autoderef_bad_ty: TypedArena<MethodAutoderefBadTy<'tcx>>,
query_region_constraints: TypedArena<QueryRegionConstraints<'tcx>>,
type_op_subtype: TypedArena<Canonical<'tcx, QueryResponse<'tcx, ()>>>,
type_op_normalize_poly_fn_sig: TypedArena<Canonical<'tcx, QueryResponse<'tcx, PolyFnSig<'tcx>>>>,
type_op_normalize_fn_sig: TypedArena<Canonical<'tcx, QueryResponse<'tcx, FnSig<'tcx>>>>,
type_op_normalize_clause: TypedArena<Canonical<'tcx, QueryResponse<'tcx, Clause<'tcx>>>>,
type_op_normalize_ty: TypedArena<Canonical<'tcx, QueryResponse<'tcx, Ty<'tcx>>>>,
inspect_probe: TypedArena<Probe<TyCtxt<'tcx>>>,
effective_visibilities: TypedArena<EffectiveVisibilities>,
upvars_mentioned: TypedArena<FxIndexMap<HirId, Upvar>>,
dyn_compatibility_violations: TypedArena<DynCompatibilityViolation>,
codegen_unit: TypedArena<CodegenUnit<'tcx>>,
attribute: TypedArena<Attribute>,
name_set: TypedArena<UnordSet<Symbol>>,
autodiff_item: TypedArena<AutoDiffItem>,
ordered_name_set: TypedArena<FxIndexSet<Symbol>>,
stable_order_of_exportable_impls: TypedArena<FxIndexMap<DefId, usize>>,
asm_template: TypedArena<InlineAsmTemplatePiece>,
used_trait_imports: TypedArena<UnordSet<LocalDefId>>,
is_late_bound_map: TypedArena<FxIndexSet<ItemLocalId>>,
impl_source: TypedArena<ImplSource<'tcx, ()>>,
dep_kind_vtable: TypedArena<DepKindVTable<'tcx>>,
trait_impl_trait_tys: TypedArena<UnordMap<DefId, EarlyBinder<'tcx, Ty<'tcx>>>>,
external_constraints: TypedArena<ExternalConstraintsData<TyCtxt<'tcx>>>,
doc_link_resolutions: TypedArena<DocLinkResMap>,
stripped_cfg_items: TypedArena<StrippedCfgItem>,
mod_child: TypedArena<ModChild>,
features: TypedArena<Features>,
specialization_graph: TypedArena<Graph>,
crate_inherent_impls: TypedArena<CrateInherentImpls>,
hir_owner_nodes: TypedArena<OwnerNodes<'tcx>>,
token_stream: TypedArena<TokenStream>,
maybe_owner: TypedArena<ProjectedMaybeOwner<'tcx>>,
owner_info: TypedArena<ProjectedOwnerInfo<'tcx>>,
parenting: TypedArena<LocalDefIdMap<ItemLocalId>>,
trait_candidates: TypedArena<ItemLocalMap<&'tcx [TraitCandidate<'tcx>]>>,
delayed_lints: TypedArena<Steal<DelayedLints>>,
}Fields§
§dropless: DroplessArena§layout: TypedArena<LayoutData<FieldIdx, VariantIdx>>§proxy_coroutine_layout: TypedArena<CoroutineLayout<'tcx>>§fn_abi: TypedArena<FnAbi<'tcx, Ty<'tcx>>>§adt_def: TypedArena<AdtDefData>§steal_thir: TypedArena<Steal<Thir<'tcx>>>§steal_mir: TypedArena<Steal<Body<'tcx>>>§mir: TypedArena<Body<'tcx>>§steal_promoted: TypedArena<Steal<IndexVec<Promoted, Body<'tcx>>>>§promoted: TypedArena<IndexVec<Promoted, Body<'tcx>>>§typeck_results: TypedArena<TypeckResults<'tcx>>§borrowck_result: TypedArena<FxIndexMap<LocalDefId, DefinitionSiteHiddenType<'tcx>>>§resolver: TypedArena<Steal<ResolverAstLowering<'tcx>>>§index_ast: TypedArena<IndexVec<LocalDefId, Steal<(Arc<ResolverAstLowering<'tcx>>, AstOwner)>>>§crate_alone: TypedArena<Steal<Crate>>§crate_for_resolver: TypedArena<Steal<(Crate, AttrVec)>>§resolutions: TypedArena<ResolverGlobalCtxt>§const_allocs: TypedArena<Allocation>§region_scope_tree: TypedArena<ScopeTree>§mir_keys: TypedArena<DefIdSet>§dropck_outlives: TypedArena<Canonical<'tcx, QueryResponse<'tcx, DropckOutlivesResult<'tcx>>>>§normalize_canonicalized_projection: TypedArena<Canonical<'tcx, QueryResponse<'tcx, NormalizationResult<'tcx>>>>§implied_outlives_bounds: TypedArena<Canonical<'tcx, QueryResponse<'tcx, Vec<OutlivesBound<'tcx>>>>>§dtorck_constraint: TypedArena<DropckConstraint<'tcx>>§candidate_step: TypedArena<CandidateStep<'tcx>>§autoderef_bad_ty: TypedArena<MethodAutoderefBadTy<'tcx>>§query_region_constraints: TypedArena<QueryRegionConstraints<'tcx>>§type_op_subtype: TypedArena<Canonical<'tcx, QueryResponse<'tcx, ()>>>§type_op_normalize_poly_fn_sig: TypedArena<Canonical<'tcx, QueryResponse<'tcx, PolyFnSig<'tcx>>>>§type_op_normalize_fn_sig: TypedArena<Canonical<'tcx, QueryResponse<'tcx, FnSig<'tcx>>>>§type_op_normalize_clause: TypedArena<Canonical<'tcx, QueryResponse<'tcx, Clause<'tcx>>>>§type_op_normalize_ty: TypedArena<Canonical<'tcx, QueryResponse<'tcx, Ty<'tcx>>>>§inspect_probe: TypedArena<Probe<TyCtxt<'tcx>>>§effective_visibilities: TypedArena<EffectiveVisibilities>§upvars_mentioned: TypedArena<FxIndexMap<HirId, Upvar>>§dyn_compatibility_violations: TypedArena<DynCompatibilityViolation>§codegen_unit: TypedArena<CodegenUnit<'tcx>>§attribute: TypedArena<Attribute>§name_set: TypedArena<UnordSet<Symbol>>§autodiff_item: TypedArena<AutoDiffItem>§ordered_name_set: TypedArena<FxIndexSet<Symbol>>§stable_order_of_exportable_impls: TypedArena<FxIndexMap<DefId, usize>>§asm_template: TypedArena<InlineAsmTemplatePiece>§used_trait_imports: TypedArena<UnordSet<LocalDefId>>§is_late_bound_map: TypedArena<FxIndexSet<ItemLocalId>>§impl_source: TypedArena<ImplSource<'tcx, ()>>§dep_kind_vtable: TypedArena<DepKindVTable<'tcx>>§trait_impl_trait_tys: TypedArena<UnordMap<DefId, EarlyBinder<'tcx, Ty<'tcx>>>>§external_constraints: TypedArena<ExternalConstraintsData<TyCtxt<'tcx>>>§doc_link_resolutions: TypedArena<DocLinkResMap>§stripped_cfg_items: TypedArena<StrippedCfgItem>§mod_child: TypedArena<ModChild>§features: TypedArena<Features>§specialization_graph: TypedArena<Graph>§crate_inherent_impls: TypedArena<CrateInherentImpls>§hir_owner_nodes: TypedArena<OwnerNodes<'tcx>>§token_stream: TypedArena<TokenStream>§maybe_owner: TypedArena<ProjectedMaybeOwner<'tcx>>§owner_info: TypedArena<ProjectedOwnerInfo<'tcx>>§parenting: TypedArena<LocalDefIdMap<ItemLocalId>>§trait_candidates: TypedArena<ItemLocalMap<&'tcx [TraitCandidate<'tcx>]>>§delayed_lints: TypedArena<Steal<DelayedLints>>Implementations§
Source§impl<'tcx> Arena<'tcx>
impl<'tcx> Arena<'tcx>
pub fn alloc<T: ArenaAllocatable<'tcx, C>, C>(&'tcx self, value: T) -> &mut T
pub fn alloc_slice<T: Copy>(&self, value: &[T]) -> &mut [T]
pub fn alloc_str(&self, string: &str) -> &str
pub fn alloc_from_iter<T: ArenaAllocatable<'tcx, C>, C>( &'tcx self, iter: impl IntoIterator<Item = T>, ) -> &mut [T]
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> !DynSync for Arena<'tcx>
impl<'tcx> !Freeze for Arena<'tcx>
impl<'tcx> !RefUnwindSafe for Arena<'tcx>
impl<'tcx> !Send for Arena<'tcx>
impl<'tcx> !Sync for Arena<'tcx>
impl<'tcx> !UnwindSafe for Arena<'tcx>
impl<'tcx> DynSend for Arena<'tcx>
impl<'tcx> Unpin for Arena<'tcx>
impl<'tcx> UnsafeUnpin for Arena<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<K> IntoQueryKey<K> for K
impl<K> IntoQueryKey<K> for K
Source§fn into_query_key(self) -> K
fn into_query_key(self) -> K
Argument conversion from
Self to K.
This should always be a very cheap conversion, e.g. LocalDefId::to_def_id.Source§impl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
Source§impl<I, T> UpcastFrom<I, T> for T
impl<I, T> UpcastFrom<I, T> for T
fn upcast_from(from: T, _tcx: I) -> T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
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: 2976 bytes