[][src]Trait rustc_ast_lowering::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, Crate<'tcx>> for Crate<'tcx>[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading content...

Implementors

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

Loading content...