Struct moore_vhdl::score::ScoreBoard
source · [−]pub struct ScoreBoard<'ast, 'ctx> {
pub arenas: &'ctx Arenas,
pub llmod: RefCell<Module>,
pub ty_table: RefCell<HashMap<NodeId, &'ctx Ty>>,
pub typeck_table: RefCell<HashMap<NodeId, Result<()>>>,
pub typeval_table: RefCell<HashMap<NodeId, Result<&'ctx Ty>>>,
pub scope2_table: RefCell<HashMap<ScopeRef, Scope>>,
/* private fields */
}
Expand description
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
.
Implementations
sourceimpl<'ast, 'ctx> ScoreBoard<'ast, 'ctx>
impl<'ast, 'ctx> ScoreBoard<'ast, 'ctx>
sourcepub fn new(arenas: &'ctx Arenas) -> ScoreBoard<'ast, 'ctx>
pub fn new(arenas: &'ctx Arenas) -> ScoreBoard<'ast, 'ctx>
Creates a new empty VHDL scoreboard.
sourcepub fn intern_const<T>(&self, konst: T) -> &'ctx Const where
T: Into<Const>,
pub fn intern_const<T>(&self, konst: T) -> &'ctx Const where
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.
Auto Trait Implementations
impl<'ast, 'ctx> !RefUnwindSafe for ScoreBoard<'ast, 'ctx>
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>
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