Module shortcut::idx

source ·
Expand description

The idx module described the traits indexers must adhere to, and implements sensible default indexers.

Structs

An implementation of RangeIndex using a BTreeMap.
An implementation of EqualityIndex that uses a HashMap.

Enums

A sum type expressing all different types of indices so they can easily be stored. Since all indices must at least implement EqualityIndex, this enum also forwards all calls of that trait to the underlying index for convenience.

Traits

An EqualityIndex is an index that can perform efficient equality lookups.
A RangeIndex is an index that, in addition to performing efficient equality lookups, can also perform efficient range queries.