mod.rs |
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:
- [`Store`] for most of the methods
- [`StoreIterable`] for methods that return iterators
- [`StoreFromIterator`] to enable `FromIterator` for LiteMap
To test your implementation, enable the `"testing"` Cargo feature and use [`check_store()`].
[`check_store()`]: crate::testing::check_store |
5986 |
slice_impl.rs |
|
1497 |
vec_impl.rs |
|
4754 |