Trait Keyed

Source
pub trait Keyed<K>
where K: ?Sized,
{ // Required method fn key(&self) -> &K; }
Expand description

Key accessor for elements which have their own keys, used for KeyedVecSet.

Required Methods§

Source

fn key(&self) -> &K

key accessor for the element.

Implementations on Foreign Types§

Source§

impl Keyed<str> for String

Source§

fn key(&self) -> &str

Source§

impl<K, V> Keyed<K> for (K, V)

Source§

fn key(&self) -> &K

Implementors§

Source§

impl<K> Keyed<K> for K