defaultdict

Crates.iodefaultdict
lib.rsdefaultdict
version0.19.0
created_at2022-08-13 19:20:32.027304+00
updated_at2025-07-04 18:12:21.493383+00
descriptionA hashmap implementation that mirrors the python defaultdict.
homepage
repositoryhttps://github.com/MitchellBerend/defaultdict
max_upload_size
id645009
size76,463
Mitchell Berendhuysen (MitchellBerend)

documentation

https://docs.rs/defaultdict

README

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.

Commit count: 46

cargo fmt