Struct rustc_mir_build::thir::Arena[−][src]

pub struct Arena<'thir, 'tcx> {
    pub dropless: DroplessArena,
    drop: DropArena,
    arm: TypedArena<Arm<'thir, 'tcx>>,
    expr: TypedArena<Expr<'thir, 'tcx>>,
    field_expr: TypedArena<FieldExpr<'thir, 'tcx>>,
    inline_asm_operand: PhantomData<InlineAsmOperand<'thir, 'tcx>>,
    stmt: TypedArena<Stmt<'thir, 'tcx>>,
}

Fields

dropless: DroplessArenadrop: DropArenaarm: TypedArena<Arm<'thir, 'tcx>>expr: TypedArena<Expr<'thir, 'tcx>>field_expr: TypedArena<FieldExpr<'thir, 'tcx>>inline_asm_operand: PhantomData<InlineAsmOperand<'thir, 'tcx>>stmt: TypedArena<Stmt<'thir, 'tcx>>

Implementations

impl<'thir, 'tcx> Arena<'thir, 'tcx>[src]

pub fn alloc<T: ArenaAllocatable<'thir, 'tcx, U>, U>(
    &'thir self,
    value: T
) -> &'thir mut T
[src]

pub fn alloc_slice<T: Copy>(&'thir self, value: &[T]) -> &'thir mut [T][src]

pub fn alloc_from_iter<T: ArenaAllocatable<'thir, 'tcx, U>, U>(
    &'thir self,
    iter: impl IntoIterator<Item = T>
) -> &'thir mut [T]
[src]

Trait Implementations

impl<'thir, 'tcx> Default for Arena<'thir, 'tcx>[src]

Auto Trait Implementations

impl<'thir, 'tcx> !RefUnwindSafe for Arena<'thir, 'tcx>

impl<'thir, 'tcx> !Send for Arena<'thir, 'tcx>

impl<'thir, 'tcx> !Sync for Arena<'thir, 'tcx>

impl<'thir, 'tcx> Unpin for Arena<'thir, 'tcx> where
    'tcx: 'thir, 

impl<'thir, 'tcx> !UnwindSafe for Arena<'thir, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.