Expand description
Runtime for layline.
no_std, with no dependencies.
Re-exports§
Modules§
- audit
- The audit format: every table of a type, one record per line.
- checksum
- The
Checksumtrait, and built-in checksums. - frame
frame - Stream framing.
- num
num - Number codings: reserved values, LEB128 and Exp-Golomb.
- table
- Table row types, and the
const fns that check them. - text
alloc - Text encodings for
#[text]fields.
Structs§
- BitReader
- A bit cursor that reads from a byte slice.
- BitWriter
- A bit cursor that appends to a
Buffer. - Extent
- A field’s bit offset and width, numbered LSB0.
- Fixed
- A
Bufferover a caller’s byte slice, for encoding without an allocator. - I
- A two’s-complement signed integer exactly
Nbits wide, withNin1..=64. - Nonzero
- A flag stored in
BITSbits that is set when any of them is. - Overflow
- A buffer ran out of room during encode.
- U
- An unsigned integer exactly
Nbits wide, withNin1..=64.
Enums§
- Layout
Error - Why a field table does not exactly cover its container.
- Parse
Error - Why a decode failed.
Constants§
- MAX_
NESTING_ DEPTH - The nesting depth, in messages, past which decode returns
ParseError::TooDeep.
Traits§
- BitCodec
- A value whose width in bits is read from the wire.
- Buffer
- A byte buffer that encode appends to and patches.
- Choice
- The arms of a
#[switch]field.#[derive(Message)]on an enum implements it. - Dispatch
- A catalogue of payloads keyed by id.
#[derive(Dispatch)]implements it. - Field
Codec - A type stored in a fixed number of bits.
- Layout
- A fixed-size type whose named fields cover every bit.
- Message
- A variable-length type, described by a segment table.
- Message
Ref - A variable-length type whose fields borrow the bytes it decodes from.
- Slot
- The variant of
Selfthat holds aT. - VarCodec
- A value whose width in bytes is read from the wire.
- View
- A
#[repr(transparent)]view over aLayout’s wire bytes. - WireInt
- An integer read from the wire, such as a count, length or offset.