pub struct Arena<'tcx> {
pub blk_root: Arena<BlockRoot<'tcx>>,
pub blk_func: Arena<BlockFunc<'tcx>>,
pub blk_class: Arena<BlockClass<'tcx>>,
pub blk_impl: Arena<BlockImpl<'tcx>>,
pub blk_stmt: Arena<BlockStmt<'tcx>>,
pub blk_call: Arena<BlockCall<'tcx>>,
pub blk_enum: Arena<BlockEnum<'tcx>>,
pub blk_field: Arena<BlockField<'tcx>>,
pub blk_const: Arena<BlockConst<'tcx>>,
/* private fields */
}Fields§
§blk_root: Arena<BlockRoot<'tcx>>§blk_func: Arena<BlockFunc<'tcx>>§blk_class: Arena<BlockClass<'tcx>>§blk_impl: Arena<BlockImpl<'tcx>>§blk_stmt: Arena<BlockStmt<'tcx>>§blk_call: Arena<BlockCall<'tcx>>§blk_enum: Arena<BlockEnum<'tcx>>§blk_field: Arena<BlockField<'tcx>>§blk_const: Arena<BlockConst<'tcx>>Implementations§
Source§impl<'tcx> Arena<'tcx>
impl<'tcx> Arena<'tcx>
pub fn alloc<T: ArenaAllocatable<'tcx>>(&'tcx self, value: T) -> &'tcx T
pub fn alloc_mut<T: ArenaAllocatableMut<'tcx>>( &'tcx self, value: T, ) -> &'tcx mut T
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> !Freeze for Arena<'tcx>
impl<'tcx> !RefUnwindSafe for Arena<'tcx>
impl<'tcx> Send for Arena<'tcx>
impl<'tcx> !Sync for Arena<'tcx>
impl<'tcx> Unpin for Arena<'tcx>
impl<'tcx> UnwindSafe for Arena<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more