1 2 3 4 5
use std::{fmt::Debug, hash::Hash}; /// Compound trait that is implemented for any type that implements all bound traits. pub trait Key: Debug + Eq + Hash + Clone + 'static {} impl<T> Key for T where T: Debug + Eq + Hash + Clone + 'static {}