Trait utils::input::MapWithInputExt
source · 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 InputError
s.
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
).