[−][src]Struct moore_vhdl::hir::AllocContext
A context for HIR node construction.
Fields
sess: &'t dyn SessionContext
arenas: &'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]
Arenas2<'t>: Alloc<'t, 't, T>,
impl<'t> Clone for AllocContext<'t>
[src]
fn clone(&self) -> AllocContext<'t>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'t> Copy for AllocContext<'t>
[src]
impl<'t> DiagEmitter for AllocContext<'t>
[src]
fn emit(&self, diag: DiagBuilder2)
[src]
impl<'t> ScopeContext<'t> for AllocContext<'t>
[src]
fn define(&self, name: Spanned<ResolvableName>, def: Def2<'t>) -> Result<()>
[src]
fn import_def(&self, name: ResolvableName, def: Spanned<Def2<'t>>) -> Result<()>
[src]
fn import_scope(&self, scope: &'t ScopeData<'t>) -> Result<()>
[src]
fn resolve(&self, name: ResolvableName, recur: bool) -> Vec<Spanned<Def2<'t>>>
[src]
impl<'t> SessionContext for AllocContext<'t>
[src]
fn has_verbosity(&self, verb: Verbosity) -> bool
[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]
A: for<'a> Alloc<'a, 't, T>,
T: 't,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,