[][src]Struct moore::score::ScoreContext

pub struct ScoreContext<'lazy, 'sb: 'lazy, 'ast: 'sb, 'ctx: 'sb> {
    pub sess: &'lazy Session,
    pub sb: &'sb ScoreBoard<'ast, 'ctx>,
    pub vhdl: &'sb ScoreBoard<'ast, 'ctx>,
    pub vhdl_phases: &'lazy LazyPhaseTable<'sb, 'ast, 'ctx>,
    pub svlog: &'sb GlobalContext<'ast>,
}

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.

Implementations

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<'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> !RefUnwindSafe for ScoreContext<'lazy, 'sb, 'ast, 'ctx>[src]

impl<'lazy, 'sb, 'ast, 'ctx> !Send for ScoreContext<'lazy, 'sb, 'ast, 'ctx>[src]

impl<'lazy, 'sb, 'ast, 'ctx> !Sync for ScoreContext<'lazy, 'sb, 'ast, 'ctx>[src]

impl<'lazy, 'sb, 'ast, 'ctx> Unpin for ScoreContext<'lazy, 'sb, 'ast, 'ctx> where
    'ast: 'lazy + 'sb,
    'ctx: 'lazy + 'sb,
    'sb: 'lazy, 
[src]

impl<'lazy, 'sb, 'ast, 'ctx> !UnwindSafe for ScoreContext<'lazy, 'sb, 'ast, 'ctx>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.