Module ordermap::set

source ·
Expand description

OrderSet is a hash table set where the iteration order of the items is independent of the hash values of the items.

It is based on IndexSet, and even shares many of the auxiliary types like Slice and all of the iterators.

Unlike IndexSet, OrderSet does consider the order for PartialEq and Eq, and it also implements PartialOrd, Ord, and Hash. Methods like OrderSet::remove use IndexSet’s “shift” semantics, so they preserve the relative order of remaining entries.

Modules§

Structs§

Traits§