Struct moore_vhdl::lazy::LazyPhase
source · [−]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
sourceimpl<T: Default> LazyPhase<T> where
T: Default,
impl<T: Default> LazyPhase<T> where
T: Default,
sourcepub fn schedule<I, F>(&self, id: I, f: F) where
T: NodeStorage<I, Node = LazyNode<F>>,
pub fn schedule<I, F>(&self, id: I, f: F) where
T: NodeStorage<I, Node = LazyNode<F>>,
Schedule a task to be lazily executed.
sourcepub 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.
Auto Trait Implementations
impl<T> !RefUnwindSafe for LazyPhase<T>
impl<T> Send for LazyPhase<T> where
T: Send,
impl<T> !Sync for LazyPhase<T>
impl<T> Unpin for LazyPhase<T> where
T: Unpin,
impl<T> UnwindSafe for LazyPhase<T> where
T: UnwindSafe,
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