Skip to main content

set

Attribute Macro set 

Source
#[set]
Expand description

Declare a bounded ordered set with item(...) and max_items = N (0..256). Elements can be primitives, scalar newtypes or unit enums. The generated wrapper contains a BTreeSet<T>. Decoding requires strictly increasing keys.