Expand description
Error types.
Hot paths propagate a bare ErrorCode, which is a single byte, so
Result<(), ErrorCode> is register sized and ? costs a test-and-branch.
The byte offset is attached once, at the public entry point, from the
cursor position at the moment the parse stopped.
Structs§
- Error
- A parse or serialization failure, located within the input.
Enums§
- Error
Code - What went wrong. One byte, so error propagation stays cheap.
- Stream
Error - A failure from an operation that touches an
io::Readorio::Write.
Type Aliases§
- Result
- Result of a public
structiooperation. - Stream
Result - Result of an operation that can fail on I/O as well as on content.