-
Notifications
You must be signed in to change notification settings - Fork 13.4k
more work on the map trait and TreeMap/LinearMap #4594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This makes the module much more discoverable, and is in line with the 'treemap' naming.
This legacy trait needs to be dropped in order to migrate to core::container::Map, which doesn't require @ and Copy, and will make proper use of borrowed pointers.
This isn't simpler (or faster) than just doing the copy in the caller, and it doesn't work for types that can be cloned but not copied.
it's pretty solid, at least relative to most of the other modules
Thanks, I'm running tests and if they pass, I'll merge this. |
Awaiting a fix for |
Currently some code duplication in the fix/expansion of the benchmark between the LinearMap/TreeMap functions. Getting rid of the code duplication results in a very strange borrow checking error (diff: https://gist.github.com/4616504, error: https://gist.github.com/4616785) |
Great, thanks for the hard work! |
more work on the map trait and TreeMap/LinearMap
currently breaks test/bench/core-map.rs, which will need to be rewritten