Impl docs on wrapper types

Hi all,

Say I have a wrapper type, Wrapper<T> and I want all the methods implemented in impl Wrapper<T> to show up in the documentation page for struct T instead of struct Wrapper. Is there any good way to do that?


There isn't:

The best you can do is to implement Deref:

but in terms of docs it shows up the other way - Wrapper docs will show docs of the type it derefs to.

That makes sense, thanks so much

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.