[−][src]Struct moore_vhdl::symtbl::SymTbl
Fields
root_scope: Scope
scopes: HashMap<NodeId, Scope>
Implementations
impl SymTbl
[src]
pub fn new() -> SymTbl
[src]
Create a new empty symbol table.
pub fn alloc_id(&mut self) -> NodeId
[src]
Allocate a new node ID that has not yet been used.
pub fn get_library_id(&mut self, name: Name) -> NodeId
[src]
Obtain the node ID for the library with the given name, or allocate a new ID if none exists yet. Use this function to create a scope for this library.
pub fn add_scope(&mut self, scope: Scope)
[src]
Add a scope to the symbol table. If a scope with the same node ID already exists, the new scope's contents are merged into the existing scope. This allows for gradual extension of the contents of a scope. Useful for populating library scopes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SymTbl
[src]
impl Send for SymTbl
[src]
impl Sync for SymTbl
[src]
impl Unpin for SymTbl
[src]
impl UnwindSafe for SymTbl
[src]
Blanket Implementations
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, 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>,