Crate defaultdict

source ·
Expand 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.

Macros§

Structs§

  • This struct mimicks the behaviour of a python defaultdict. This means alongside the traitbounds that apply on the key and value that are inherited from the BTreeMap, it also requires the Default trait be implemented on the value type.
  • This struct mimicks the behaviour of a python defaultdict. This means alongside the traitbounds that apply on the key and value that are inherited from the HashMap, it also requires the Default trait be implemented on the value type.