Function winnow::unpeek

source ·
pub fn unpeek<'a, I, O, E>(
    peek: impl FnMut(I) -> IResult<I, O, E> + 'a
) -> impl FnMut(&mut I) -> PResult<O, E>
where I: Clone,
Expand description

Convert a Parser::parse_peek style parse function to be a Parser