When a pubtrait is implemented on a constructed type—not counting references if those are "type constructors"—that was constructed based on a private type, it is shown in the documentation. Ideally it would not do this as I like private types to not leak into my documentation. The type constructor has to be pub of course (e.g., a slice).
cargo doc --open will generate documentation that shows the traitFoo. When clicking on it, it will show impl Foo for [Fizz] under "Implementations on Foreign Types".
Problem
When a
pub
trait
is implemented on a constructed type—not counting references if those are "type constructors"—that was constructed based on a private type, it is shown in the documentation. Ideally it would not do this as I like private types to not leak into my documentation. The type constructor has to bepub
of course (e.g., aslice
).Steps
cargo doc --open
will generate documentation that shows thetrait
Foo
. When clicking on it, it will showimpl Foo for [Fizz]
under "Implementations on Foreign Types".Possible Solution(s)
No response
Notes
No response
Version