Struct moore_vhdl::hir::AllocContext
source · [−]pub struct AllocContext<'t> {
pub sess: &'t dyn SessionContext,
pub arenas: &'t Arenas2<'t>,
pub scope: &'t ScopeData<'t>,
}
Expand description
A context for HIR node construction.
Fields
sess: &'t dyn SessionContext
arenas: &'t Arenas2<'t>
scope: &'t ScopeData<'t>
Implementations
sourceimpl<'t> AllocContext<'t>
impl<'t> AllocContext<'t>
sourcepub fn create_subscope(&self) -> AllocContext<'t>
pub fn create_subscope(&self) -> AllocContext<'t>
Create a subscope and return a new context for that scope.
Trait Implementations
sourceimpl<'a, 't, T: 't> Alloc<'a, 't, T> for AllocContext<'t> where
Arenas2<'t>: Alloc<'t, 't, T>,
impl<'a, 't, T: 't> Alloc<'a, 't, T> for AllocContext<'t> where
Arenas2<'t>: Alloc<'t, 't, T>,
sourceimpl<'t> Clone for AllocContext<'t>
impl<'t> Clone for AllocContext<'t>
sourcefn clone(&self) -> AllocContext<'t>
fn clone(&self) -> AllocContext<'t>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'t> DiagEmitter for AllocContext<'t>
impl<'t> DiagEmitter for AllocContext<'t>
sourcefn emit(&self, diag: DiagBuilder2)
fn emit(&self, diag: DiagBuilder2)
Emit a diagnostic message.
sourceimpl<'t> ScopeContext<'t> for AllocContext<'t>
impl<'t> ScopeContext<'t> for AllocContext<'t>
sourcefn define(&self, name: Spanned<ResolvableName>, def: Def2<'t>) -> Result<()>
fn define(&self, name: Spanned<ResolvableName>, def: Def2<'t>) -> Result<()>
Define a new name in the scope.
sourcefn import_def(&self, name: ResolvableName, def: Spanned<Def2<'t>>) -> Result<()>
fn import_def(&self, name: ResolvableName, def: Spanned<Def2<'t>>) -> Result<()>
Import a definition into the scope.
sourcefn import_scope(&self, scope: &'t ScopeData<'t>) -> Result<()>
fn import_scope(&self, scope: &'t ScopeData<'t>) -> Result<()>
Import an entire scope into the scope.
sourceimpl<'t> SessionContext for AllocContext<'t>
impl<'t> SessionContext for AllocContext<'t>
sourcefn has_verbosity(&self, verb: Verbosity) -> bool
fn has_verbosity(&self, verb: Verbosity) -> bool
Check if a verbosity option is set.
impl<'t> Copy for AllocContext<'t>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more