I too would appreciate a way to keep the impl block around a list of methods more visible. I’m not deeply familiar with what is or isn’t easily possible in HTML, but I would appreciate e.g. if the
impl<K, V, S> HashMap<K, V, S>
where
K: Eq + Hash,
S: BuildHasher,
would stay visible at the top of the page (similar to a top menu), and scrolling would happen inside of the impl block, as long as you are inside of that impl, only disappearing e.g. once the (start of the) last item leaves the page.
E.g. for
... previous
... items
... contents
impl Foo {
fn first_method()
... method
... documentation
fn second_method()
... method
... documentation
fn third_method()
... method
... documentation
}
... next
... items
... contents
a 6-line scroll area should animate roughly as follows:
... previous
... items
... contents
impl Foo {
fn first_method()
... method
... items
... contents
impl Foo {
fn first_method()
... method
... documentation
... contents
impl Foo {
fn first_method()
... method
... documentation
fn second_method()
impl Foo {
fn first_method()
... method
... documentation
fn second_method()
... method
impl Foo {
... method
... documentation
fn second_method()
... method
... documentation
impl Foo {
... documentation
fn second_method()
... method
... documentation
fn third_method()
impl Foo {
fn second_method()
... method
... documentation
fn third_method()
... method
impl Foo {
... method
... documentation
fn third_method()
... method
... documentation
impl Foo {
... documentation
fn third_method()
... method
... documentation
}
impl Foo {
fn third_method()
... method
... documentation
}
... next
fn third_method()
... method
... documentation
}
... next
... items
... method
... documentation
}
... next
... items
... contents
(above, the impl Foo line starts disappearing as soon as the beginning of the last item, i.e. fn third_method(), has reached the top of the screen)