pub type Generator<T> = Rc<dyn Fn(u64) -> T>;
Wrapper for a function that takes a node_id and returns an instance of T.
node_id
T
pub struct Generator<T> { /* private fields */ }