[−][src]Struct moore::score::ScoreContext
The global context which holds information about the used scoreboards. All useful operations are defined on this context rather than on the scoreboard directly, to decouple processing and ownership.
Fields
sess: &'lazy Session
The compiler session which carries the options and is used to emit diagnostics.
sb: &'sb ScoreBoard<'ast, 'ctx>
The global scoreboard.
vhdl: &'sb ScoreBoard<'ast, 'ctx>
The VHDL scoreboard.
vhdl_phases: &'lazy LazyPhaseTable<'sb, 'ast, 'ctx>
The VHDL lazy phase table.
svlog: &'sb GlobalContext<'ast>
The SystemVerilog scoreboard.
Methods
impl<'lazy, 'sb, 'ast, 'ctx> ScoreContext<'lazy, 'sb, 'ast, 'ctx>
[src]
pub fn vhdl(&'lazy self) -> ScoreContext<'lazy, 'sb, 'ast, 'ctx>
[src]
Obtain a reference to the VHDL context.
pub fn add_library(&self, name: Name, asts: &'ast [Ast]) -> LibRef
[src]
Add a library to the scoreboard.
pub fn defs(&self, id: ScopeRef) -> Result<&'ctx Defs>
[src]
Obtain the definitions in a scope. Calculate them if needed.
Trait Implementations
impl<'lazy, 'sb, 'ast, 'ctx> GenericContext for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
[src]
impl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<ScopeRef, &'ctx HashMap<Name, Def, RandomState>> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
[src]
Auto Trait Implementations
impl<'lazy, 'sb, 'ast, 'ctx> !Send for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
impl<'lazy, 'sb, 'ast, 'ctx> !Sync for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
impl<'lazy, 'sb, 'ast, 'ctx> Unpin for ScoreContext<'lazy, 'sb, 'ast, 'ctx> where
'ast: 'lazy + 'sb,
'ctx: 'lazy + 'sb,
'sb: 'lazy,
'ast: 'lazy + 'sb,
'ctx: 'lazy + 'sb,
'sb: 'lazy,
impl<'lazy, 'sb, 'ast, 'ctx> !UnwindSafe for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
impl<'lazy, 'sb, 'ast, 'ctx> !RefUnwindSafe for ScoreContext<'lazy, 'sb, '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,