pub type Generator<T> = Box<dyn Fn(u64) -> T + 'static>;
Expand description

Wrapper for a function that takes a node_id and returns an instance of T.

Aliased Type§

struct Generator<T>(Unique<dyn Fn(u64) -> T>, Global);

Fields§

§0: Unique<dyn Fn(u64) -> T>§1: Global