Skip to main content

gen

Function gen 

Source
pub fn gen<'env, F, T>(f: F) -> Gen<F>
where F: FnOnce(&Scope<'env>) -> T,
Expand description

Helper function to create a Gen.

This is mostly useful to improve type inference when using a function to encapsulate references.