#default-value #hash-map #python #mirror #utility #behavior

defaultdict

A hashmap implementation that mirrors the python defaultdict

16 breaking releases

0.18.0 Feb 6, 2024
0.16.1 Jun 16, 2023
0.15.0 Mar 19, 2023
0.13.0 Aug 28, 2022

#31 in #mirror

44 downloads per month

MIT license

44KB
595 lines

Crates.io codecov

Motivation

This serves as an utility library and an example project. It has no dependencies so it can be used in a different project without pulling in other dependencies transitively.

Description

This library exposes structs that mimicks the behaviour of the python defaultdict.

This behaviour does require that the type of the value does have the Default implemented.


lib.rs:

This library exposes structs that mimicks the behaviour of the python defaultdict.

This behaviour does require that the type of the value does have the Default implemented.

No runtime deps