Expand description
Data structures specialized for usage in the Wasmi interpreter.
All data structures provide an API that can be backed by both HashMap and BTreeMap.
Users can choose which kind of backend to operate on via the no-hash-maps crate feature.
§Provided Data Structures
Arena: typed arena for fast allocations and accessesDedupArena: typed arena that also deduplicates, based on eitherHashMaporBTreeMapComponentVec: useful to add properties to entities stored in anArenaorDedupArenaMap: generic set of values, based on eitherHashMaporBTreeMapSet: generic key-value mapping, based on eitherHashSetorBTreeSetStringInterner: stores and deduplicates strings efficiently, based on eitherHashSetorBTreeSet
Modules§
- arena
- Fast arena data structures specialized for usage in the Wasmi interpreter.
- map
- Type definitions for a default map.
- set
- Type definitions for a default set.
- string_
interner - Data structure to efficiently store and deduplicate strings.
Structs§
- Arena
- An arena allocator with a given index and entity type.
- Component
Vec - Stores components for entities backed by a
Vec. - Dedup
Arena - A deduplicating arena allocator with a given index and entity type.
- HeadVec
- A
Vec-like data structure with fast access to the last item. - Map
- A default key-value mapping.
- Set
- A default set of values.
- String
Interner - Efficiently interns and deduplicates strings.