[][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>

Implementations

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> Clone for AllocContext<'t>[src]

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

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

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

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

Auto Trait Implementations

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

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

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

impl<'t> Unpin for AllocContext<'t>

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

Blanket Implementations

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

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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.