Skip to main content

Module error

Module error 

Source
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§

ErrorCode
What went wrong. One byte, so error propagation stays cheap.
StreamError
A failure from an operation that touches an io::Read or io::Write.

Type Aliases§

Result
Result of a public structio operation.
StreamResult
Result of an operation that can fail on I/O as well as on content.