billyrieger/bimap-rs

std::iter::Extend for bimap

Closed this issue · 1 comments

nw0 commented

Hi, I've found your crate useful and have experimented with implementing std::iter::Extend for BiHashMap.

I have a working implementation (with test), and was wondering if you'd have any interest in a PR? If so I'll open one and we can iterate from there if necessary.

It's straightforward (15 lines) and I'm happy to implement the trait for BiBTreeMap as well, if that's helpful.

That would be great! I think it'd be best to implement Extend for both BiHashMap and BiBTreeMap.