Module builder

Module builder 

Source

Re-exportsยง

pub use list::*;
pub use metadata::*;
pub use object::*;

Modulesยง

list ๐Ÿ”’
metadata ๐Ÿ”’
object ๐Ÿ”’

Macrosยง

variant_append_value ๐Ÿ”’
Macro to generate the match statement for each append_variant, try_append_variant, and append_variant_bytes โ€“ they each have slightly different handling for object and list handling.

Structsยง

ParentState
Tracks information needed to correctly finalize a nested builder.
ValueBuilder
Wrapper around a Vec<u8> that provides methods for appending primitive values, variant types, and metadata.
VariantBuilder
Top level builder for Variant values

Constantsยง

BASIC_TYPE_BITS ๐Ÿ”’
UNIX_EPOCH_DATE ๐Ÿ”’

Traitsยง

BuilderSpecificState
A trait for managing state specific to different builder types.
VariantBuilderExt
Extends VariantBuilder to help building nested Variants

Functionsยง

int_size ๐Ÿ”’
primitive_header ๐Ÿ”’
short_string_header ๐Ÿ”’
write_offset_at_pos ๐Ÿ”’
Write little-endian integer to buffer at a specific position