pub(crate) fn into_nomerror<I>(e: Err<Error<I>>) -> Err<NomError<I>>
This essentially implements From<nom::Err<nom::error::Error<I>>> for nom::Err<NomError<I>>, which we can’t because nom::Err<_> is a foreign type.
From<nom::Err<nom::error::Error<I>>>
nom::Err<NomError<I>>
nom::Err<_>