Module nom::error [−][src]
Expand description
Error management
Parsers are generic over their error type, requiring that it implements
the error::ParseError<Input>
trait.
Structs
this error type accumulates errors and their position when backtracking
through a parse tree. With some post processing (cf examples/json.rs
),
it can be used to display user friendly error messages
Enums
indicates which parser returned an error
error context for VerboseError
Traits
this trait must be implemented by the error type of a nom parser
Functions
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
create a new error from an input position, a static string and an existing error. This is used mainly in the context combinator, to add user friendly information to errors when backtracking through a parse tree
transforms a VerboseError
into a trace with input position information
converts an ErrorKind to a number
creates an error from the input position and an ErrorKind