-
Notifications
You must be signed in to change notification settings - Fork 13.4k
provide detailed documentation of entry API #17609
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
It seems unfortunate to duplicate the documentation across these two functions, perhaps the philosophy behind the |
@alexcrichton Yeah, I wasn't sure on this. Where would it go in collections? One possibility is to make the Entry enum generic and part of libcollections, and have each Map share it. Then the docs could reasonably go there? This will also be a problem when we start axing the collection traits. So maybe we need to figure out a more robust solution for this. |
Hm, I was thinking of perhaps the module documentation for |
Yeah, this is one of the downsides of not using traits for common interfaces (which of course we want to eventually). Personally, I like the idea of beefing up the docs for |
@aturon So you would just have it floating loose on this page? http://doc.rust-lang.org/std/collections/ |
@gankro Yes, exactly. Right now there's literally no documentation for this module, and I think it would be great to instead provide an overview of the APIs, including |
@aturon Yes, but I remember we nixed doing that for... a reason. What were we waiting for? Stabalization? |
@gankro I think the hesitation before was mainly that it didn't make sense to land just the performance overview, without a more general overview of the API surface. (This was aside from issues about the perf stuff being too much of a tutorial on asymptotics.) Anyway, it would be really great to start work on a solid overview of the collections, both in terms of the concrete collections and their tradeoffs, and in terms of the most significant APIs/conventions. Might be good to coordinate with @steveklabnik. Is that something you'd be interested in working on? |
Closing in favour of #17802 |
minor: Sync from downstream
minor: Sync from downstream
Also added some re-exports that were missing from btree that this exposed.