Rust doc not showing all implementation of a struct

From the source code here, we can see that struct Exact has an FilterBase implementation, but it's doc not show this implementation. Is it a bug or i've just misunderstood how rust doc works.

FilterBase is a private trait. Those aren't documented unless you pass --document-private-items to rustdoc.

1 Like

Yes! You are right. Thank you so much.

And there is a special case seems quite inconvenient. In code below, Filter is pub to external crates, but the doc generated by cargo won't include type information from Filter of Exact. So we just can't know there are some extra "method" available from doc.

trait FilterBase {}
trait Filter: FilterBase {}
struct Exact;
impl FilterBase for Exact {}
impl <T: FilterBase> Filter for T {}