Description
I find myself often navigating to rustdocs and then clicking through to the [src]
link instead of using the docs directly (or bypassing rustdoc and going to the git repo). The most common reason I find myself doing this is because I'm trying to learn the interface for some type that I want to use.
Coming from an algebraic datatype background, I often want to know the set of ways to introduce a type and the different functions that accept that type (roughly speaking, producers and consumers of a type).
The rustdocs as they are today do a good job of listing the impl
functions for a type and enumerating traits for the type. So what more do I want? Let's say there is a module foo
that defines the type Foo
. Often times foo
, and other modules within the same library, also define functions that operate on Foo
. I would like a convenient way to see these functions together. Perhaps we could call it a type indexed index :)
I apologize if this feature already exists and I've overlooked it.
Thanks in advance!