pub type NonCanonicalBTreeSet<T> = BTreeSet<T>;Expand description
A BTreeSet used in value position; the counterpart to NonCanonicalBTreeMap.
Unlike maps, serde already serializes a BTreeSet as a plain sequence (it never goes through
serialize_map), so BCS does not re-sort it. A type alias is therefore enough; no wrapper is
needed.
Use it in value position (RegisterView<Value> or MapView<_, Value>). In key position
(MapView<Key, _>) use CanonicalBTreeSet instead, which enforces the canonical ordering
that keys require.
Aliased Typeยง
pub struct NonCanonicalBTreeSet<T> { /* private fields */ }