If you look at the std FromIterator trait, the word HashMap
in the impl ... for HashMap
links to the documentation of std::collections::HashMap
, even though the actual definition is at std::collections::hash_map::HashMap
, which is also visible in the online documentation.
I'm trying to recreate this in the documentation for my own crate, where I pub re-export MyStruct
from a submodule using #[doc(inline)]
. This works somewhat in the sense that the documentation page for MyStruct
is generated in the right place. However, all of the links in the rest of the documentation to MyStruct
point to the original definition, not the re-export. How can I make rustdoc link to the re-export?