pub trait MapLike {
type Key: Hash + Eq + Display + Clone;
type Value: Debug;
// Required methods
fn contains_key(&self, key: &Self::Key) -> bool;
fn is_empty(&self) -> bool;
}
Expand description
Represents a generic map-like container with key-value pairs.