Struct moore_vhdl::lazy::LazyPhase
[−]
[src]
pub struct LazyPhase<T> { pub table: RefCell<T>, }
A table of tasks needed to perform a compiler phase.
Fields
table: RefCell<T>
Methods
impl<T: Default> LazyPhase<T> where
T: Default,
[src]
T: Default,
fn new() -> LazyPhase<T>
[src]
Create a new lazy phase.
fn schedule<I, F>(&self, id: I, f: F) where
T: NodeStorage<I, Node = LazyNode<F>>,
[src]
T: NodeStorage<I, Node = LazyNode<F>>,
Schedule a task to be lazily executed.
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<Fn(&'a ScoreContext<'b, 'sb, 'ast, 'ctx>) -> Result<R> + 'sb>>>,
[src]
&self,
id: I,
ctx: &ScoreContext<'lazy, 'sb, 'ast, 'ctx>
) -> Result<R> where
I: Copy + Debug,
T: NodeStorage<I, Node = LazyNode<Box<Fn(&'a ScoreContext<'b, 'sb, 'ast, 'ctx>) -> Result<R> + 'sb>>>,
Run a task.