1 2 3 4 5 6 7 8
use super::collection::Collection; pub trait Insert<K, V>: Collection { type Output; fn insert(&self, key: K, element: V) -> Self::Output; }
1 2 3 4 5 6 7 8
use super::collection::Collection; pub trait Insert<K, V>: Collection { type Output; fn insert(&self, key: K, element: V) -> Self::Output; }