Function pure

Source
pub fn pure<I, O, E>(val: O) -> impl Fn(I) -> IResult<I, O, E>
where O: Clone, E: ParseError<I>,
Expand description

Create a combinator that returns the provided value, and input unchanged