litemap

Module store

Source
Expand description

Traits for pluggable LiteMap backends.

By default, LiteMap is backed by a Vec. However, in some environments, it may be desirable to use a different data store while still using LiteMap to manage proper ordering of items.

The general guidelines for a performant data store are:

  1. Must support efficient random access for binary search
  2. Should support efficient append operations for deserialization

To plug a custom data store into LiteMap, implement:

To test your implementation, enable the "testing" Cargo feature and use check_store().

Traitsยง