Expand description
A module providing Set, an immutable set implementation backed by a MPHF.
This implementation is optimized for efficient membership checks by using a MPHF to evaluate whether an item is in the set. Keys are stored in the map to ensure that queries for an item not in the set always fail.
§When to use?
Use this set implementation when you have a pre-defined set of keys and you want to check for
efficient membership in that set. Because this set is immutable, it is not possible to
dynamically update membership. However, when the rkyv_derive feature is enabled, you can use
rkyv to perform zero-copy deserialization of a new set.
Structs§
- Set
- An efficient, immutable set.