Back to browse
GitHub Repository

Rust traits for abstract containers and operations over them for std and third-party crates. With this, you can have the same code working on Vec, HashMap, BTreeMap, Option.

2 starsRust

Maplike – Rust traits for operations on containers (get, set, push...)

by mikolajw·Jul 24, 2026·2 points·0 comments

AI Analysis

●●SolidNiche GemBig Brain

Python's collections.abc for Rust, but with granular operation traits.

Strengths
  • Granular traits like Get and Set allow fine-grained abstraction over diverse types.
  • No-std compatible and includes derive macros for custom container support.
  • Dogfooded in author's undo-redo and DCEL crates, proving real-world utility.
Weaknesses
  • Abstracting over Vec and HashMap simultaneously may lead to confusing runtime semantics.
  • Niche appeal limited to advanced Rust users writing generic data structure libraries.
Target Audience

Rust library authors and systems programmers

Similar To

itertools · heapless

Similar Projects