Skip to main content

Module tuple

Module tuple 

Source
Expand description

Tuple binding subsystem for encoding Rust primitive types into sortable byte arrays.

This module provides the primary binding mechanism for database keys. Values are encoded in a way that their byte representation sorts in the same order as the original values when compared lexicographically.

Re-exports§

pub use sort_key::SortKey;
pub use tuple_binding::TupleBinding;
pub use tuple_input::TupleInput;
pub use tuple_output::TupleOutput;
pub use primitive_bindings::*;

Modules§

primitive_bindings
Type-specific tuple bindings for primitive types.
sort_key
Sort-preserving key encoding trait for database keys.
tuple_binding
TupleBinding trait for type-specific tuple serialization.
tuple_input
TupleInput: reads primitive types from a byte buffer using sortable encodings.
tuple_output
TupleOutput: writes primitive types to a growable buffer using sortable encodings.