Struct moore_vhdl::lazy::LazyPhase [−][src]
pub struct LazyPhase<T> { pub table: RefCell<T>, }
Expand description
A table of tasks needed to perform a compiler phase.
Fields
table: RefCell<T>
Implementations
Schedule a task to be lazily executed.
pub fn run<'lazy, 'sb, 'ast, 'ctx, I, R>(
&self,
id: I,
ctx: &ScoreContext<'lazy, 'sb, 'ast, 'ctx>
) -> Result<R> where
I: Copy + Debug,
T: NodeStorage<I, Node = LazyNode<Box<dyn for<'a, 'b> Fn(&'a ScoreContext<'b, 'sb, 'ast, 'ctx>) -> Result<R> + 'sb>>>,
pub fn run<'lazy, 'sb, 'ast, 'ctx, I, R>(
&self,
id: I,
ctx: &ScoreContext<'lazy, 'sb, 'ast, 'ctx>
) -> Result<R> where
I: Copy + Debug,
T: NodeStorage<I, Node = LazyNode<Box<dyn for<'a, 'b> Fn(&'a ScoreContext<'b, 'sb, 'ast, 'ctx>) -> Result<R> + 'sb>>>,
Run a task.