Skip to main content

function

Function function 

Source
pub fn function<F, I, O, E, C>(f: F) -> Function<F, I, C> 
where F: FnMut(Pin<&mut I>, &mut Context<'_>, &mut C) -> PolledResult<O, I>, I: Positioned + ?Sized, C: Default,
Expand description

Wraps the function into a parser or an iterable parser.