Function pure
pub fn pure<I, O, E>(val: O) -> impl Fn(I)where
E: ParseError<I>,
O: Clone,
Expand description
Create a combinator that returns the provided value, and input unchanged
pub fn pure<I, O, E>(val: O) -> impl Fn(I)where
E: ParseError<I>,
O: Clone,
Create a combinator that returns the provided value, and input unchanged