Idiomatic use of Self

For me at least, the vast majority of documentation generated by cargo doc is consumed from docs.rs, in which I would not have the choice to generate anything other than the default config.

2 Likes

Good point. Perhaps it could be a toggleable setting on the site itself.

My personal recollection: Self was added to make things like macros easier, but not intended to be used in code that was written out.

I personally don’t ever use Self. But I see code that does use it all the time.

1 Like

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.