Macros§
Structs§
- Array
- A count-prefixed array.
- Array
Iter ZTArray
,Array
, andRestArray
Iterator
for values of typeT
.- Array
String - A string, which lives on top of a given array type.
- BufWriter
- Length
- Length
Prefixed - A length-prefixed value.
- Phantom
Data - Zero-sized type used to mark things that “act like” they own a
T
. - Rest
- Represents the remainder of data in a message.
- Rest
Array - A rest array: consumes the remainder of the buffer.
- Struct
Buffer - A buffer that accumulates bytes of sized structs and feeds them to provided sink function when messages are complete. This buffer handles partial messages and multiple messages in a single push.
- Struct
Field - Struct
Field Computed - Struct
Field Meta - A struct that contains metadata about a field’s type.
- Struct
Fields - Uuid
- A Universally Unique Identifier (UUID).
- ZTArray
- A zero-terminated array.
Enums§
- Encoded
- An encoded row value.
- Parse
Error
Traits§
- Array
Ext - Shared trait for all array types.
- Builder
For - Marks a type as a builder for a given message.
- Data
Type - All data types must implement this trait. This allows for encoding and decoding of the data type to byte buffers.
- Data
Type Fixed Size - Implemented for all data types that have a fixed size.
- Decoder
For - Marks a type as a decoder for itself.
- Encoder
For - Marks a type as an encoder for a given type.
- Encoder
ForExt - Helper trait for encodable objects.
- Enum
Meta - A trait for enums that describes some information.
- Struct
Attribute Field Count - A trait implemented for all structs with a count of fields.
- Struct
Attribute Fixed Size - A trait implemented for all structs with a boolean determining whether they are fixed size.
- Struct
Attribute HasLength Field - A trait implemented for all structs with a boolean determining whether they have a length field.
- Struct
Length - Implemented for all generated structs that have a [
meta::Length
] field at a fixed offset. - Struct
Meta - A trait for structs that describes their fields, containing some associated
constants. Note that only
FIELDS
is provided. The remainder of the associated constants are computed fromFIELDS
.
Type Aliases§
- LString
- A length-prefixed string.
- Rest
String - A string which consumes the remainder of the buffer.
- ZTString
- A zero-terminated string.