-
Couldn't load subscription status.
- Fork 13.9k
Description
In generated Rustdoc documentation, it would make sense to show whether a type is Sized or not.
Looking at the documentation for slice (which is !Sized) and Cell (which is Sized), we see no reference to Sized in either location.
DSTs may largely be second class citizens at the moment, but it would still be useful to surface this information in the docs.
As I see it, there's two options which make sense:
- Simply show
Sizedon all Sized types. - Instead, show nothing on Sized types and show
!Sizedon non-Sized types.
The first option is more in line with the way that the rest of the traits are surfaced. but may be somewhat confusing (in that Sized is special because it's implied to be implemented, unless you specifically specify otherwise in trait bounds).
The second option is more in line with the way we think about Sized with respect to bounds, but also seems confusing in that negative trait bounds are not a supported feature.