Thanks. I was confused because all of the slice methods show up on Vec in std::vec - Rust . It seems this is because Vec implements Deref<Target = [T]>?
Edit: And the documentation is not super clear (to me!) on an individual method basis what the current impl is.
It could probably be improved. One problem is when a doc page gets so long that the section header is off-screen after scrolling to a specific method, making it impossible to see the full context. Keeping this information visible would be really useful.
Yeah, that would be a nice way to solve the problem. I tend to be an old HTML4 curmudgeon and would just throw the impl inline with every single method, but a top bar that follows down the page would also be easy to understand for me.
Thanks again. I'm about 8 days into Rust and still getting familiar with the basics like this.
Naturally, the background-color will need to change alongside the theme. The expand/collapse button is still visible underneath this, as the element doesn't sit far enough to the left. But as a quick fix, this little snippet of code suffices (and in my opinion is actually far better).