Function map_add_intent

Source
pub fn map_add_intent(
    desc: &'static str,
    intent: &'static str,
    nom_err: Err<Error<&str>>,
) -> Error
Expand description

Convert a nom error into an owned error and add the parsing intent.

ยงErrors

This maps to a Error::ParseError.