Function nombine::convert_from_nom [−][src]
pub fn convert_from_nom<I, O, E>(
parse: NomParser<I::Range, O, E>,
convert_error: impl FnMut(ErrorKind<E>) -> StreamErrorFor<I>
) -> impl Parser<Input = I, Output = O, PartialState = ()> where
I: FullRangeStream,
I::Range: Range,
Converts a nom parser into a combine parser.
Like from_nom
but accepts a function to convert the nom
error to combine
.