Skip to main content

Factory

Type Alias Factory 

Source
type Factory<T> = Box<dyn FnOnce(&BuildCtx) -> T + Send>;
Expand description

Type-erased factory closure producing T from a BuildCtx reference.

Aliased Typeยง

struct Factory<T>(/* private fields */);