[−][src]Function nom_supreme::final_parser::final_parser
pub fn final_parser<I, O, E, E2>(
parser: impl Parser<I, O, E>
) -> impl FnMut(I) -> Result<O, E2> where
E: ParseError<I> + ExtractContext<I, E2>,
I: InputLength + Clone,
Bootstrapping layer for a nom parser.
This function is intended to be the entry point into a nom parser; it
represents in some sense the "end of composability". It creates a function
which applies a parser to an input. The parser is configured such that it
must parse the entire input, and any "Incomplete" responses are reported
as errors. Additionally, if the parser returns an error, the context
information in the error is recombined with the original input via
ExtractContext
to create a more useful error.