[][src]Trait rustc_middle::arena::ArenaAllocatable

pub trait ArenaAllocatable<'tcx, T = Self>: Sized {
    fn allocate_on<'a>(self, arena: &'a Arena<'tcx>) -> &'a mut Self;
fn allocate_from_iter<'a>(
        arena: &'a Arena<'tcx>,
        iter: impl IntoIterator<Item = Self>
    ) -> &'a mut [Self]; }

Required methods

fn allocate_on<'a>(self, arena: &'a Arena<'tcx>) -> &'a mut Self

fn allocate_from_iter<'a>(
    arena: &'a Arena<'tcx>,
    iter: impl IntoIterator<Item = Self>
) -> &'a mut [Self]

Loading content...

Implementations on Foreign Types

impl<'tcx> ArenaAllocatable<'tcx, Layout> for Layout[src]

impl<'tcx> ArenaAllocatable<'tcx, IndexVec<Promoted, Body<'tcx>>> for IndexVec<Promoted, Body<'tcx>>[src]

impl<'tcx> ArenaAllocatable<'tcx, HashSet<DefId, BuildHasherDefault<FxHasher>>> for DefIdSet[src]

impl<'tcx> ArenaAllocatable<'tcx, Vec<DefId>> for Vec<DefId>[src]

impl<'tcx> ArenaAllocatable<'tcx, Vec<ForeignModule>> for Vec<ForeignModule>[src]

impl<'tcx> ArenaAllocatable<'tcx, IndexMap<HirId, Upvar, BuildHasherDefault<FxHasher>>> for FxIndexMap<HirId, Upvar>[src]

impl<'tcx> ArenaAllocatable<'tcx, Attribute> for Attribute[src]

impl<'tcx> ArenaAllocatable<'tcx, HashSet<Symbol, BuildHasherDefault<FxHasher>>> for FxHashSet<Symbol>[src]

impl<'tcx> ArenaAllocatable<'tcx, HashSet<HirId, BuildHasherDefault<FxHasher>>> for HirIdSet[src]

impl<'tcx> ArenaAllocatable<'tcx, Definitions> for Definitions[src]

impl<'tcx> ArenaAllocatable<'tcx, InlineAsmTemplatePiece> for InlineAsmTemplatePiece[src]

impl<'tcx> ArenaAllocatable<'tcx, Span> for Span[src]

impl<'tcx> ArenaAllocatable<'tcx, HashSet<LocalDefId, BuildHasherDefault<FxHasher>>> for FxHashSet<LocalDefId>[src]

Loading content...

Implementors

impl<'tcx> ArenaAllocatable<'tcx, ObjectSafetyViolation> for ObjectSafetyViolation[src]

impl<'tcx> ArenaAllocatable<'tcx, IndexedHir<'tcx>> for IndexedHir<'tcx>[src]

impl<'tcx> ArenaAllocatable<'tcx, Owner<'tcx>> for Owner<'tcx>[src]

impl<'tcx> ArenaAllocatable<'tcx, OwnerNodes<'tcx>> for OwnerNodes<'tcx>[src]

impl<'tcx> ArenaAllocatable<'tcx, Canonical<'tcx, QueryResponse<'tcx, &'tcx TyS<'tcx>>>> for Canonical<'tcx, QueryResponse<'tcx, Ty<'tcx>>>[src]

impl<'tcx> ArenaAllocatable<'tcx, Canonical<'tcx, QueryResponse<'tcx, ()>>> for Canonical<'tcx, QueryResponse<'tcx, ()>>[src]

impl<'tcx> ArenaAllocatable<'tcx, Canonical<'tcx, QueryResponse<'tcx, DropckOutlivesResult<'tcx>>>> for Canonical<'tcx, QueryResponse<'tcx, DropckOutlivesResult<'tcx>>>[src]

impl<'tcx> ArenaAllocatable<'tcx, Canonical<'tcx, QueryResponse<'tcx, NormalizationResult<'tcx>>>> for Canonical<'tcx, QueryResponse<'tcx, NormalizationResult<'tcx>>>[src]

impl<'tcx> ArenaAllocatable<'tcx, Canonical<'tcx, QueryResponse<'tcx, Binder<FnSig<'tcx>>>>> for Canonical<'tcx, QueryResponse<'tcx, PolyFnSig<'tcx>>>[src]

impl<'tcx> ArenaAllocatable<'tcx, Canonical<'tcx, QueryResponse<'tcx, FnSig<'tcx>>>> for Canonical<'tcx, QueryResponse<'tcx, FnSig<'tcx>>>[src]

impl<'tcx> ArenaAllocatable<'tcx, Canonical<'tcx, QueryResponse<'tcx, Predicate<'tcx>>>> for Canonical<'tcx, QueryResponse<'tcx, Predicate<'tcx>>>[src]

impl<'tcx> ArenaAllocatable<'tcx, Canonical<'tcx, QueryResponse<'tcx, Vec<OutlivesBound<'tcx>>>>> for Canonical<'tcx, QueryResponse<'tcx, Vec<OutlivesBound<'tcx>>>>[src]

impl<'tcx> ArenaAllocatable<'tcx, ForeignModule> for ForeignModule[src]

impl<'tcx> ArenaAllocatable<'tcx, AccessLevels<HirId>> for AccessLevels[src]

impl<'tcx> ArenaAllocatable<'tcx, ScopeTree> for ScopeTree[src]

impl<'tcx> ArenaAllocatable<'tcx, Allocation<(), ()>> for Allocation[src]

impl<'tcx> ArenaAllocatable<'tcx, CodegenUnit<'tcx>> for CodegenUnit<'tcx>[src]

impl<'tcx> ArenaAllocatable<'tcx, Body<'tcx>> for Body<'tcx>[src]

impl<'tcx> ArenaAllocatable<'tcx, BorrowCheckResult<'tcx>> for BorrowCheckResult<'tcx>[src]

impl<'tcx> ArenaAllocatable<'tcx, UnsafetyCheckResult> for UnsafetyCheckResult[src]

impl<'tcx> ArenaAllocatable<'tcx, Steal<IndexVec<Promoted, Body<'tcx>>>> for Steal<IndexVec<Promoted, Body<'tcx>>>[src]

impl<'tcx> ArenaAllocatable<'tcx, Steal<Body<'tcx>>> for Steal<Body<'tcx>>[src]

impl<'tcx> ArenaAllocatable<'tcx, AdtDef> for AdtDef[src]

impl<'tcx> ArenaAllocatable<'tcx, PredicateInner<'tcx>> for PredicateInner<'tcx>[src]

impl<'tcx> ArenaAllocatable<'tcx, TyS<'tcx>> for TyS<'tcx>[src]

impl<'tcx> ArenaAllocatable<'tcx, TypeckResults<'tcx>> for TypeckResults<'tcx>[src]

impl<'tcx, T: Copy> ArenaAllocatable<'tcx, ()> for T[src]

Loading content...