Hayden Stainsby on Nostr: Rust PSA: You can add doc comments to functions (and associated types) on traits that ...
Rust PSA:
You can add doc comments to functions (and associated types) on traits that you implement for some struct or enum and it will be visible (e.g. on docs.rs) instead of the trait's own description.
And you should do this! You can likely provide useful information for someone working with your object and that trait!
#rust #rustlang
You can add doc comments to functions (and associated types) on traits that you implement for some struct or enum and it will be visible (e.g. on docs.rs) instead of the trait's own description.
And you should do this! You can likely provide useful information for someone working with your object and that trait!
#rust #rustlang