Skip to main content

lazy

Function lazy 

Source
pub const fn lazy<G: Generate, F: Fn() -> G>(generator: F) -> Lazy<G, F>
Expand description

Defers the construction of a generator until it is used.

This is essential for creating recursive generators. See Lazy for details.