Module encoding

Source
Expand description

Protobuf encodings for Rust types.

Structs§

ArcEncoding
A wrapper encoding for reference-counted data.
ArrayField
A field encoder for fixed-sized arrays.
BorrowedCowField
An encoder for Cow<'a, str> or Cow<'a, [u8]> that creates Cow::Borrowed on read.
BoxEncoding
A wrapper encoding for boxed data.
ByteField
A field encoder for u8.
BytesField
A field encoder for byte streams.
DerivedEncoding
An encoding derived by mesh_derive for T.
DurationEncoding
Protobuf-compatible encoding for Duration.
Fixed32Field
A field encoder for fixed32 fields.
Fixed64Field
A field encoder for fixed64 fields.
IgnoreField
A field encoder for fields that should be ignored.
ImpossibleField
A field and message encoder for fields that cannot be instantiated.
Ipv6AddrField
A field encoder for an IPv6 address.
MapField
A field encoder for maps from K to V, using encoders EK and EV.
MessageEncoding
A field encoding for message encoding implementations.
OptionField
A field encoder for Option.
OwningCowField
An encoder for Cow<'a, str> or Cow<'a, [u8]> that creates Cow::Owned on read.
ResourceField
A field encoder for types that can be converted to and from OS resource type T.
SerializedMessageEncoder
An encoder for SerializedMessage.
SignedVarintField
A field encoder for signed (zigzag encoded) varint fields.
StringField
A field encoder for strings.
U128LittleEndianField
A field encoder for u128.
VarintField
A field encoder for varint fields.
VecField
A field encoder for Vec.
ZeroCopyEncoding
A field encoding for C-format structs.

Traits§

FixedNumber
A FixedNumber can be converted to a u32 or u64 type for use with fixed64 and fixed32 fields.
FromNumber
A trait for converting a value to from u64 for use in varint encodings.
ToNumber
A trait for converting a value to a u64 for use in varint encodings.