seq-map

Crates.ioseq-map
lib.rsseq-map
version0.0.2
sourcesrc
created_at2024-09-28 21:46:55.502081
updated_at2024-10-08 16:46:15.072484
descriptionSequential Map
homepage
repositoryhttps://github.com/piot/seq-map
max_upload_size
id1390393
size13,153
Peter Bjorklund (piot)

documentation

README

SeqMap

SeqMap is a deterministic and ordered map implementation in Rust that preserves the insertion order of key-value pairs. It combines the efficiency of a HashMap for quick key lookups with the ordered iteration provided by a Vec. This makes SeqMap ideal for scenarios where the order of elements is important and predictable.

Features

  • Deterministic Ordering: Maintains the order of key-value pairs based on their insertion sequence.
  • Efficient Lookups: Utilizes a HashMap internally for O(1) average-case key lookups.
  • Comprehensive API: Provides methods for insertion, retrieval, mutation, iteration, and more.

Installation

Add seq-map to your Cargo.toml dependencies:

[dependencies]
seq-map = "0.0.1"
Commit count: 7

cargo fmt