Skip to main content

map

Attribute Macro map 

Source
#[map]
Expand description

Declare a named BTreeMap wrapper using key(...), value(...) and max_items = N (0..256). Keys are primitives, scalar newtypes or unit enums. Values use the ordinary optional/list/named field rules; stored duplicate keys refuse.