RefKey

Trait RefKey 

Source
pub trait RefKey {
    type Output;

    // Required method
    fn key(&self) -> &Self::Output;
}
Expand description

Trait for extracting key that is a reference to internal data from a data structure.

Required Associated Types§

Source

type Output

Type of the key.

Required Methods§

Source

fn key(&self) -> &Self::Output

Extract the key from the data structure.

Implementors§