Skip to content

Commit

Permalink
Implement Extend<(K, V)> on FastImMap
Browse files Browse the repository at this point in the history
  • Loading branch information
atlanticaccent committed Feb 8, 2025
1 parent 5e49907 commit 691ae65
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common/src/fast_im_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ where
}
}

impl<K, V> Extend<(K, V)> for FastImMap<K, V>
where
K: Hash + Eq + Clone,
V: Clone,
{
fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T) {
self.0.extend(iter);
}
}

impl<K: Clone + Hash + Eq, V: Clone> PartialEq for FastImMap<K, V>
where
druid::im::HashMap<K, V, ahash::RandomState>: PartialEq,
Expand Down

0 comments on commit 691ae65

Please sign in to comment.