Crate wasmi_collections

source ·
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

Modules§

  • Fast arena data structures specialized for usage in the Wasmi interpreter.
  • Utilities for hashmap initialization based on random sources.
  • Type definitions for a default map.
  • Type definitions for a default set.
  • Data structure to efficiently store and deduplicate strings.

Structs§

  • An arena allocator with a given index and entity type.
  • Stores components for entities backed by a Vec.
  • A deduplicating arena allocator with a given index and entity type.
  • A default key-value mapping.
  • A default set of values.
  • Efficienty interns and deduplicates strings.