pub trait MapWithInputExt {
type Output;
// Required method
fn map_with_input(self, input: &str) -> Self::Output;
}Expand description
Extension trait to simplify converting errors and locations into InputErrors.
Note that constructing InputError is expensive, and therefore conversion should be done as
late as possible, to avoid unnecessary work if the error is discarded (for example,
by Parser::or).