PegFormatError¶
Formats PegError values for display on a terminal or as JSON.
Constructors¶
create¶
Returns¶
- PegFormatError val^
Public Functions¶
console¶
Format an error for terminal output. Set colorize to false to omit
ANSI escape sequences (useful when piping to non-terminal destinations).
Parameters¶
Returns¶
- ByteSeqIter val
json¶
Format an error as a JSON object.
Parameters¶
- e: PegError val
Returns¶
- ByteSeqIter val
eq¶
Parameters¶
- that: PegFormatError val
Returns¶
- Bool val
ne¶
Parameters¶
- that: PegFormatError val
Returns¶
- Bool val