Trait Keyed

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

Trait for getting the key from a Leaf value

Required Methods§

Source

fn key(&self) -> &K

Return a reference to the key of the leaf type

Implementors§

Source§

impl<K> Keyed<K> for K