Skip to main content

Keyed

Trait Keyed 

Source
pub trait Keyed: Collection {
    type Key;
}
Expand description

Abstract keyed collection.

Required Associated Types§

Source

type Key

Type of the keys indexing each item of the collection.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

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

Implementors§