Trait RefKey
keyed
pub trait RefKey { type Output; fn key(&self) -> &Self::Output; }
Trait for extracting key that is a reference to internal data from a data structure.
type Output
Type of the key.
fn key(&self) -> &Self::Output
Extract the key from the data structure.