Expand description
§unbytes
Ergonomic, performant, owned forward-only cursors based on bytes
, with some bonus features.
unbytes
gives the following guarantees:
- Never panics.
- Never copies.
- Never allocates.
Note that implementations involving the bytes
crate can allocate. Traits like Into<Bytes>
, especially on Vec
s, are very likely to reallocate. unbytes
can’t do anything about that.
The following feature flags are available, but none are enabled by default.
std
: Standard library support, like anstd::io::Read
implementation.maypanic
: Functionality that may panic if used improperly, like aBuf
implementation.
Structs§
- EndOf
Input - Error returned when the end of the cursor is reached.
- Reader
- Panic-free forward-only cursor. See the module level docs.
Traits§
- Decode
- A trait for decoding types.
- Decode
Endian - A trait for decoding types that may have different representations in different endians.