Add checklist item about blanket implementations of traits #137
bluss
started this conversation in
API Guidelines
Replies: 2 comments
-
Good idea. What recommendation would you make here? Always provide these impls where possible? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think they should be implemented when possible.
Is there maybe a class of traits where it does not make sense? Any trait that's not widely implemented for some reason? Extension traits certainly, and maybe more. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For each public trait in a crate, we need to consider if the blanket implementations over references and boxes (see below) should exist or not. This needs consideration since adding them later is a breaking change.
For example, for a trait
Foo
, the implementations (when each is applicable):other smart pointer types don't have the same rules as
&, &mut, Box
, so they don't need to be considered beforehand.Beta Was this translation helpful? Give feedback.
All reactions