billyrieger/bimap-rs

Capacity API

Closed this issue · 0 comments

Hi there! First of all: thank you for making this crate available! A quick question: as far as I can tell, the BiHashMap has a with_capacity constructor but no reserve, shrink_to and shrink_to_fit methods, right? I'm not familiar with the BiHashMap internals, but implementing these methods would make the API closer to the standard HashMap. Is this feasible?