# Trait rustc_data_structures::unord::UnordCollection

source ·

    trait UnordCollection { }

Expand description

A marker trait specifying that `Self` can consume `UnordItems<_>` without exposing any internal ordering.

Note: right now this is just a marker trait. It could be extended to contain some useful, common methods though, like `len`, `clear`, or the various kinds of `to_sorted`.

## Implementors§

source§

### impl<K: Eq + Hash, V> UnordCollection for UnordMap<K, V>

source§

### impl<T> UnordCollection for UnordBag<T>

source§

### impl<V: Eq + Hash> UnordCollection for UnordSet<V>