4 ms·
Not specifically about your book, but I would love if there was a quicker way to find methods in the docs. Right now, if I want to find the methods used by BTr
by cbHXBY1D 10y ago
Not specifically about your book, but I would love if there was a quicker way to find methods in the docs.
Right now, if I want to find the methods used by BTreeMap you have to wade through a good amount of information until you can find how to just get the keys. I'm currently on mobile where the issue is more prominent.
- wyldfire 10y agoIf I don't find what I'm looking for from the docs, I often use ripgrep on a copy of the rust repo locally to find answers.
- travv0 10y ago> I often use ripgrep on a copy of the rust repo locally to find answers I mean, that works, but it's a workaround and not a solution.
- steveklabnik 10y agoAre you missing the search bar at the top? Typing "keys" in shows BTreeMap's keys right away, even https://doc.rust-lang.org/stable/std/?search=keys https://doc.rust-lang.org/stable/std/?search=keys That said, yeah, I hear you. It can still be tough sometimes. At some point, I'd love to work with some sort of information design / UX person to totally re-do rustdoc's output. There's a surprising number of thorny problems there. But there's always so much to do...
- nnethercote 10y agoIf you click the "[-]" symbol at the top right of a docs page it collapses all the text and just shows the method signatures. Then you can click the "[+]" symbol next to any single method to get full details.