Skip to main content

from_fn

Function from_fn 

Source
pub fn from_fn<F, Item, Meta, CanEnd>(func: F) -> FromFn<F, Item, Meta, CanEnd>
where F: FnMut() -> PullStep<Item, Meta, No, CanEnd>, Meta: Copy, CanEnd: Toggle,
Expand description

Creates a synchronous pull from a closure.

The closure is called each time the pull is polled and should return a PullStep.