[−][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>
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]
Arenas2<'t>: Alloc<'t, 't, T>,
impl<'t> Clone for AllocContext<'t>
[src]
pub fn clone(&self) -> AllocContext<'t>
[src]
pub 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]
pub fn emit(&self, diag: DiagBuilder2)
[src]
impl<'t> ScopeContext<'t> for AllocContext<'t>
[src]
pub fn define(&self, name: Spanned<ResolvableName>, def: Def2<'t>) -> Result<()>
[src]
pub fn import_def(
&self,
name: ResolvableName,
def: Spanned<Def2<'t>>
) -> Result<()>
[src]
&self,
name: ResolvableName,
def: Spanned<Def2<'t>>
) -> Result<()>
pub fn import_scope(&self, scope: &'t ScopeData<'t>) -> Result<()>
[src]
pub fn resolve(
&self,
name: ResolvableName,
recur: bool
) -> Vec<Spanned<Def2<'t>>>ⓘ
[src]
&self,
name: ResolvableName,
recur: bool
) -> Vec<Spanned<Def2<'t>>>ⓘ
impl<'t> SessionContext for AllocContext<'t>
[src]
pub fn has_verbosity(&self, verb: Verbosity) -> bool
[src]
Auto Trait Implementations
impl<'t> !RefUnwindSafe for AllocContext<'t>
[src]
impl<'t> !Send for AllocContext<'t>
[src]
impl<'t> !Sync for AllocContext<'t>
[src]
impl<'t> Unpin for AllocContext<'t>
[src]
impl<'t> !UnwindSafe for AllocContext<'t>
[src]
Blanket Implementations
impl<'t, T, A> AllocInto<'t, T> for A where
T: 't,
A: for<'a> Alloc<'a, 't, T>,
[src]
T: 't,
A: for<'a> Alloc<'a, '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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,