1 2 3 4 5 6
use std::hash::Hash; pub trait Lookup { type Key: Hash + Eq + Clone; fn key(&self) -> Self::Key; }