[][src]Struct moore_svlog::GlobalArenas

pub struct GlobalArenas<'t> { /* fields omitted */ }

The arenas that allocate things in the global context.

Use this struct whenever you want to allocate or internalize something during the compilation procedure.

Methods

impl<'t> GlobalArenas<'t>[src]

pub fn alloc_ids(
    &'t self,
    ids: impl IntoIterator<Item = NodeId>
) -> &'t [NodeId]
[src]

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]

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.

Trait Implementations

impl<'_> Default for GlobalArenas<'_>[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]

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

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

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.