[−][src]Struct moore_vhdl::score::ScoreBoard
The VHDL scoreboard that keeps track of compilation results.
Fields
arenas: &'ctx Arenas
A reference to the arenas where the scoreboard allocates nodes.
llmod: RefCell<Module>
The LLHD module into which code is emitted.
ty_table: RefCell<HashMap<NodeId, &'ctx Ty>>
A table of types.
typeck_table: RefCell<HashMap<NodeId, Result<()>>>
A table of typeck results.
typeval_table: RefCell<HashMap<NodeId, Result<&'ctx Ty>>>
A table of typeval results.
scope2_table: RefCell<HashMap<ScopeRef, Scope>>
A table of scopes. Revised; will replace scope_table
and def_table
.
Methods
impl<'ast, 'ctx> ScoreBoard<'ast, 'ctx>
[src]
pub fn new(arenas: &'ctx Arenas) -> ScoreBoard<'ast, 'ctx>
[src]
Creates a new empty VHDL scoreboard.
pub fn intern_const<T>(&self, konst: T) -> &'ctx Const where
T: Into<Const>,
[src]
T: Into<Const>,
Internalize a constant.
Returns a reference to the constant whose lifetime is bound to that of the arenas associated with the scoreboard.
pub fn intern_ty<T>(&self, ty: T) -> &'ctx Ty where
T: Into<Ty>,
[src]
T: Into<Ty>,
Internalize a type.
Returns a reference to the constant whose lifetime is bound to that of the arenas associated with the scoreboard.
Auto Trait Implementations
impl<'ast, 'ctx> !Send for ScoreBoard<'ast, 'ctx>
impl<'ast, 'ctx> !Sync for ScoreBoard<'ast, 'ctx>
impl<'ast, 'ctx> Unpin for ScoreBoard<'ast, 'ctx>
impl<'ast, 'ctx> !UnwindSafe for ScoreBoard<'ast, 'ctx>
impl<'ast, 'ctx> !RefUnwindSafe for ScoreBoard<'ast, 'ctx>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,