rusticata_macros::combinator

Function pure

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

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