Skip to main content

Module encoder

Module encoder 

Source

Structs§

ByteSerializer
Serializes a value directly into MaxMind DB binary form, avoiding an intermediate Value allocation.
OwnedMapOrSlice
SerError
Error returned while encoding a value for a MaxMind DB.
ValueSerializer
Serializes a value into an owned Value.

Enums§

Value
A MaxMind DB value.

Functions§

encode_serialize
Serialize a Serialize value directly into MaxMind DB binary format. Returns the encoded bytes. This avoids allocating an intermediate Value.
encode_value
Encode v into MaxMind DB binary form.
encoded_size
Encode v and return the number of bytes it would occupy.

Type Aliases§

EncodeResult