[][src]Struct moore_vhdl::hir::AllocContext

pub struct AllocContext<'t> {
    pub sess: &'t dyn SessionContext,
    pub arenas: &'t Arenas2<'t>,
    pub scope: &'t ScopeData<'t>,
}

A context for HIR node construction.

Fields

sess: &'t dyn SessionContextarenas: &'t Arenas2<'t>scope: &'t ScopeData<'t>

Methods

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

pub fn create_subscope(&self) -> AllocContext<'t>
[src]

Create a subscope and return a new context for that scope.

pub fn scope(&self) -> &'t ScopeData<'t>
[src]

Return the current scope.

Trait Implementations

impl<'a, 't, T: 't> Alloc<'a, 't, T> for AllocContext<'t> where
    Arenas2<'t>: Alloc<'t, 't, T>, 
[src]

impl<'t> ScopeContext<'t> for AllocContext<'t>
[src]

impl<'t> Copy for AllocContext<'t>
[src]

impl<'t> Clone for AllocContext<'t>
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'t> DiagEmitter for AllocContext<'t>
[src]

impl<'t> SessionContext for AllocContext<'t>
[src]

Auto Trait Implementations

impl<'t> !Send for AllocContext<'t>

impl<'t> !Sync for AllocContext<'t>

Blanket Implementations

impl<T, A> AllocSelf for A where
    A: Alloc<'a, 'a, T>, 
[src]

impl<'t, T, A> AllocInto for A where
    A: Alloc<'a, 't, T>,
    T: 't, 
[src]

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.