pub type NodeFactory = Box<dyn Fn(&Graph, &str, &NodeSlice, &[NodeId]) -> Result<NodeId, SnapshotError>>;Expand description
Factory function for auto-hydration mode of Graph::from_snapshot.
Given a node name, its snapshot slice, and already-resolved dep
NodeIds, returns the NodeId of the reconstructed node registered
in the provided Graph.
The factory is responsible for calling graph.state(...),
graph.derived(...), etc. — it knows the node’s type and how to
wire the fn/equals from the application’s closure registry.
Aliased Type§
pub struct NodeFactory(/* private fields */);