-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Show implementations on typedefs on their page (or show a way to request such impls) #55408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Additionally, for "wrapper" types you should be able to find impls on their specializations on the inner type page, really: |
This looks like a duplicate of #32077.
I think that's already the case, |
Doesn't work on this simple testcase:
|
Right now, if you have It looks like #32077 has become "document all available impls on type aliases based on their definition", and this sounds like the same. @Manishearth Also, your code sample is incomplete; i don't see how that is related to type aliases. |
@QuietMisdreavus it's related to my followup comment about wrapper types |
If the wrapper type implements Deref/DerefMut, then the applicable methods will appear on the wrapper's page. if you're asking for In any case, that would make this thread about two problems; one about type aliases and the other about Deref. Please file a second issue to split these. |
For example, this type doesn't list its impls, they can be found here which is kind of counterintuitive.
Ideally, if you have
type Foo = Bar<Baz>;
, it should showimpl Bar<Baz> {}
blocks (and perhapsimpl Bar
too?)cc @QuietMisdreavus @GuillaumeGomez
The text was updated successfully, but these errors were encountered: