lookups 0.2.0

Improve the data retrieval operations for collections.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! The `lookup` module contains the structure for storing and accessing the lookup implementations.
//!
//! A `Lookup` is a mapping from a `Key` to one ore more `Positions`:
//!
//! - the `Key`: ist the value, what to looking for (like a key by a HashMap)
//! - the `Position`: is the location, where the `Key` is saved (the index, by Vec, or the key, by a HashMap)
//!   (`Position` is equivalent to the [`std::ops::Index`]).
//!   There are two kinds of `Key`s
//!     - Unique: there is exactly one `Key`
//!     - Multi : there are many `Key`s possible
//!
//! In the moment, there are two `Lookup` implementations
//! - hashing based lookup (the implementaion is a `HashMap`)  (e.g: [`hash::HashStore`])
//! - index base lookup (the lookup carried out by the Index from a `Vec`) (e.g: [`index::IndexStore`])
//!
pub mod hash;
pub mod index;
pub mod store;