#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

#29 in #mirror

Download history 89/week @ 2024-07-29 4/week @ 2024-08-19 13/week @ 2024-08-26 8/week @ 2024-09-09 30/week @ 2024-09-23 38/week @ 2024-10-07 32/week @ 2024-10-14 7/week @ 2024-10-21 8/week @ 2024-10-28 27/week @ 2024-11-04

76 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