pub trait ArenaAllocatable<'tcx, C = IsNotCopy>: Sized {
    // 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] ;
}

Required Methods§

source

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

source

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

Implementations on Foreign Types§

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Attribute

source§

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

source§

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

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for InlineAsmTemplatePiece

source§

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

source§

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

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for (InlineAsmOperand<'tcx>, Span)

source§

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

source§

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

Implementors§

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for GenericArg<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for GenericBound<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for QPath<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for WherePredicate<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Arm<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for BareFnTy<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Block<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Body<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Closure<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Crate<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Expr<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for ExprField<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for FieldDef<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for FnDecl<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for ForeignItem<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for ForeignItemRef

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for GenericArgs<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for GenericParam<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Generics<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Impl<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for ImplItem<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for ImplItemRef

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for InlineAsm<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Item<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Let<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Local<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Mod<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for OwnerInfo<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Param<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Pat<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for PatField<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Path<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for PathSegment<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for PolyTraitRef<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Stmt<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for TraitItem<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for TraitItemRef

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Ty<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for TypeBinding<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for Variant<'tcx>

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for UsePath<'tcx>

source§

impl<'tcx, T: Copy> ArenaAllocatable<'tcx, IsCopy> for T