#value #key #associated #maps #map #traits #entries

total-maps

Maps where every possible key has an associated value

1 unstable release

0.1.0 Apr 21, 2024

#869 in Data structures

Download history 91/week @ 2024-04-15 93/week @ 2024-04-22

184 downloads per month

MIT license

44KB
911 lines

total-maps

Maps where every possible key has an associated value.

Only entries with uncommon values are actually stored in the map; all other keys are presumed to be associated with a common value. The definition of "common" and "uncommon" can be customized via the Commonality trait.

Cargo features


lib.rs:

Maps where every possible key has an associated value.

Only entries with uncommon values are actually stored in the map; all other keys are presumed to be associated with a common value. The definition of "common" and "uncommon" is determined by the map's optional [Commonality] type parameter; if unspecified, the map will use [DefaultCommonality], which uses the standard [Default] trait to provide the common value.

[TotalHashMap] is the main data structure provided by this crate.

Dependencies

~39KB