Crate gin_tonic_core

Source
Expand description

The gin-tonic-core library handles protobuf encode and decoding

Modules§

macros
a collection of macros to encode/decode data. Mainly used by the derive macros of gin_tonic_derive
types

Macros§

decode_field
decode_map
decode_nested
decode_vector
decode_vector_nested
encode_field
encode_map
encode_nested
encode_vector_nested
encode_vector_packed
encode_vector_unpacked
encode_vector_unpacked_clone

Structs§

SizeHint
an Encode implementation that does not actually encode data but calculates the size it will need

Enums§

DecodeError
decoding protobuf can end up in errors which are handled in this enumeration

Constants§

WIRE_TYPE_I32
WIRE_TYPE_I64
WIRE_TYPE_LENGTH_ENCODED
WIRE_TYPE_VARINT

Traits§

Decode
main decode trait, currenlty implemented for anything that implements bytes::Buf
Encode
main encode trait, currently implement for anything that implements bytes::BufMut and SizeHint
Tag
a protobuf tag is a u32 the combines the field number and a wire type