Trait moore_vhdl::hir::LatentNode[][src]

pub trait LatentNode<'t, T: 't + ?Sized>: Debug {
    fn poll(&self) -> Result<&'t T>;
fn accept(&self, visitor: &mut dyn Visitor<'t>);
fn walk(&self, visitor: &mut dyn Visitor<'t>); }
Expand description

Lazily resolve to a Node.

Required methods

Access the underlying node.

On the first time this function is called, the node is created. Subsequent calls are guaranteed to return the same node. Node creation may fail for a variety of reasons, thus the function returns a Result.

Accept a visitor.

Polls the latent node and if successful calls accept() on it.

Walk a visitor over the latent node’s subtree.

Polls the latent node and if successful calls walk() on it.

Implementors