Struct rustc_mir_build::thir::Arena [−][src]
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]
&'thir self,
value: T
) -> &'thir mut T
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]
&'thir self,
iter: impl IntoIterator<Item = T>
) -> &'thir mut [T]
Trait Implementations
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,
'tcx: 'thir,
impl<'thir, 'tcx> !UnwindSafe for Arena<'thir, 'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,