#rustdoc - reference field instead of method

5 messages · Page 1 of 1 (latest)

upbeat drum
#

I've got a struct with a field members and a method members, both public, and I'm trying to reference the field, however [`Self::members`]
seems to reference the method, how do I reference the field instead?

trim forge
#

are you specifically trying to specify it in documentation?

upbeat drum
#

yes

#

I'm in the docs of a different method on the same struct

nimble owl
#

I think rustdoc doesn't have a specific way to disambiguate struct fields