nom::error

Function append_error

Source
pub fn append_error<I, E: ParseError<I>>(
    input: I,
    kind: ErrorKind,
    other: E,
) -> E
Expand description

Combines an existing error with a new one created from the input position and an ErrorKind. This is useful when backtracking through a parse tree, accumulating error context on the way