Module ittech::error[][src]

Expand description

Error management

This module reimplements/modifies a lot of the default nom error behaviour to make it actually suitable for debugging a binary parser such as this. It may be slower than the nom version but what use is a parser that’s fast but gives useless output..

Structs

Error returned by scan function if no magic number is recognized

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

Error context for VerboseError

Traits

Functions

Transforms a VerboseError into a trace with input position information.