[−][src]Struct moore_svlog::GlobalArenas
The arenas that allocate things in the global context.
Use this struct whenever you want to allocate or internalize something during the compilation procedure.
Implementations
impl<'t> GlobalArenas<'t>
[src]
pub fn alloc_ids(
&'t self,
ids: impl IntoIterator<Item = NodeId>
) -> &'t [NodeId]
[src]
&'t self,
ids: impl IntoIterator<Item = NodeId>
) -> &'t [NodeId]
Allocate a list of node IDs.
pub fn alloc_hir<T>(&'t self, hir: T) -> &'t T where
Arena<'t>: Alloc<'t, 't, T>,
T: 't,
[src]
Arena<'t>: Alloc<'t, 't, T>,
T: 't,
Allocate an HIR node into the global context.
pub fn alloc_rib(&'t self, rib: Rib) -> &'t Rib
[src]
Allocate a rib.
pub fn alloc_mir_lvalue(&'t self, mir: Lvalue<'t>) -> &'t Lvalue<'t>
[src]
Allocate an MIR lvalue.
pub fn alloc_mir_rvalue(&'t self, mir: Rvalue<'t>) -> &'t Rvalue<'t>
[src]
Allocate an MIR rvalue.
pub fn alloc_ast_type(&'t self, ast: Type<'t>) -> &'t Type
[src]
Allocate an AST type.
pub fn alloc_ast_expr(&'t self, ast: Expr<'t>) -> &'t Expr
[src]
Allocate an AST expression.
Trait Implementations
impl<'t> Default for GlobalArenas<'t>
[src]
fn default() -> GlobalArenas<'t>
[src]
Auto Trait Implementations
impl<'t> !RefUnwindSafe for GlobalArenas<'t>
impl<'t> Send for GlobalArenas<'t>
impl<'t> !Sync for GlobalArenas<'t>
impl<'t> Unpin for GlobalArenas<'t>
impl<'t> UnwindSafe for GlobalArenas<'t>
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
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.
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>,