Trait rustc_mir_build::thir::arena::ArenaAllocatable[−][src]

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

Required methods

fn allocate_on(self, arena: &'thir Arena<'thir, 'tcx>) -> &'thir mut Self[src]

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

Loading content...

Implementors

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

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

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

impl<'thir, 'tcx> ArenaAllocatable<'thir, 'tcx, FieldExpr<'thir, 'tcx>> for FieldExpr<'thir, 'tcx>[src]

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

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

Loading content...