4 ms·
Two things: If you click the little [-] button, you'll get an index for that page. If you use the search bar at the top, https://doc.rust-lang.org/std/vec/str
by steveklabnik 10y ago
Two things:
If you click the little [-] button, you'll get an index for that page.
If you use the search bar at the top, https://doc.rust-lang.org/std/vec/struct.Vec.html?search=vec%3A%3Alen https://doc.rust-lang.org/std/vec/struct.Vec.html?search=vec... will let you go right to the method. (In this case, you have to know that it's slice::len though)
Does that help?
EDIT: UX is hard! Glad people are discovering this. It's the same symbol HN uses, incidentally...
- papaf 10y agoThanks, thats very helpful. I did not know about the minus sign. A polite suggestion - maybe the link marked [-], that takes you to the index, could be labelled "index".
- steveklabnik 10y agoWell, it's not so much that it's an index, it's that when you have a page with only signatures, it feels like an index. There's no redirect, just some JavaScript :)
- phaylon 10y agoMaybe 'collapse' and 'expand' would be good substitutes for the '-' and '+' at the top?
- jean- 10y agoWhoa, I have been working with Rust for a little over a year, and had no idea about the [-] button. I would echo the suggestions to make that button much more visible. Or perhaps even have the top-level description expanded by default but method/trait descriptions hidden. I can't think of a case where you'd simultaneously want to see every method description.
- deleted 10y ago[deleted]
- staticassertion 10y agoBeen using rust for months now and I never knew the [-] did that. I never even thought to click it. Seems like there's some UX improvements that could happen there.