//! Erase is a useful parser combinator that erases the concrete type of a parser function and turns it into a [BoxedParserFn].
usesuper::BoxedParserFn;usecrate::parser::state::ParserState;/// Erase the concrete type of a parser function and put it in a [`BoxedParserFn`].
pubfnerase<'src, PF, O>(parser_function: PF)->BoxedParserFn<'src, O>where
PF:(Fn(&mutParserState<'src>) -> O) + 'src,
{Box::new(parser_function)}