apasel422 / tree

An ordered map and set based on a binary search tree.
https://apasel422.github.io/tree/tree
4 stars 4 forks source link

Investigate an `Into`-based entry API #21

Open apasel422 opened 9 years ago

apasel422 commented 9 years ago

Unfortunately, ToOwned::to_owned takes &self, which means that it will be strictly less efficient when passing keys by value. It appears that Into is a possibility, though.

apasel422 commented 9 years ago

This needs to support the use case of efficient &str-based access to a map with owned String keys.

apasel422 commented 9 years ago

I'm experimenting with this in https://github.com/apasel422/tree/tree/entry-into.