Identity

Trait Identity 

Source
pub trait Identity<K>
where K: Identifier,
{ type Item: Borrow<K>; // Required method fn get(&self) -> &Self::Item; }
Expand description

The Id trait describes the behavior of a type that can be used as an id. An Id is almost identical to an Identifier, but it is a trait that can be implemented for any type.

Required Associated Types§

Required Methods§

Source

fn get(&self) -> &Self::Item

Implementors§

Source§

impl<K, S> Identity<K> for S
where S: Borrow<K>, K: Identifier,

Source§

type Item = S