Module prelude

Source

Macros§

declare_meta

Structs§

Array
A count-prefixed array.
ArrayIter
ZTArray, Array, and RestArray Iterator for values of type T.
ArrayString
A string, which lives on top of a given array type.
BufWriter
Length
LengthPrefixed
A length-prefixed value.
PhantomData
Zero-sized type used to mark things that “act like” they own a T.
Rest
Represents the remainder of data in a message.
RestArray
A rest array: consumes the remainder of the buffer.
StructBuffer
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.
StructField
StructFieldComputed
StructFieldMeta
A struct that contains metadata about a field’s type.
StructFields
Uuid
A Universally Unique Identifier (UUID).
ZTArray
A zero-terminated array.

Enums§

Encoded
An encoded row value.
ParseError

Traits§

ArrayExt
Shared trait for all array types.
BuilderFor
Marks a type as a builder for a given message.
DataType
All data types must implement this trait. This allows for encoding and decoding of the data type to byte buffers.
DataTypeFixedSize
Implemented for all data types that have a fixed size.
DecoderFor
Marks a type as a decoder for itself.
EncoderFor
Marks a type as an encoder for a given type.
EncoderForExt
Helper trait for encodable objects.
EnumMeta
A trait for enums that describes some information.
StructAttributeFieldCount
A trait implemented for all structs with a count of fields.
StructAttributeFixedSize
A trait implemented for all structs with a boolean determining whether they are fixed size.
StructAttributeHasLengthField
A trait implemented for all structs with a boolean determining whether they have a length field.
StructLength
Implemented for all generated structs that have a [meta::Length] field at a fixed offset.
StructMeta
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 from FIELDS.

Type Aliases§

LString
A length-prefixed string.
RestString
A string which consumes the remainder of the buffer.
ZTString
A zero-terminated string.