Keyed

Trait Keyed 

Source
pub trait Keyed {
    type Key;
}
Expand description

Marker trait for keyed collections describing their key type.

This trait is needed to prevent “error[E0207]: the type parameter (...) is not constrained by the impl trait, self type, or predicates” by consuming the type parameter into the associated type Key.

Required Associated Types§

Implementations on Foreign Types§

Source§

impl<K> Keyed for BTreeSet<K>

Source§

type Key = K

Source§

impl<K> Keyed for HashSet<K>

Source§

type Key = K

Source§

impl<K> Keyed for RTree<K>
where K: RTreeObject,

Source§

type Key = K

Source§

impl<K, V> Keyed for BTreeMap<K, V>

Source§

type Key = K

Source§

impl<K, V> Keyed for HashMap<K, V>

Source§

type Key = K

Source§

impl<V> Keyed for Arena<V>

Source§

impl<V, C> Keyed for StableVecFacade<V, C>
where C: Core<V>,

Implementors§

Source§

impl<K, V: RTreeObject, C> Keyed for RTreed<K, V, C>

Source§

type Key = K