-
Notifications
You must be signed in to change notification settings - Fork 717
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
Emitting or deriving trait implementations #886
Comments
Should |
My point is that #934 says that WIBNI to derive But I don't suppose it really matters! Tracking that in one place is certainly enough; I was just trying to tie some loose ends together. |
Let's implement all the traits!!
All of the "Derive
Blah
when possible" issues have code in tree already that they can crib from, so shouldn't be too difficult to write.Once we start deriving lots of different traits, I expect we may find that we can unify their implementations, or at least make a generic
CanDeriveTrait<T: DerivableTrait>
kind of generic thing."manually" implement
Debug
when we cannot derive it: Emit a "manual" implementation of Debug when it cannot be derived #875Derive
Hash
when possible: Derive Hash when we can #876Hash
when we cannot derive it: "manually" implement Hash when it cannot be derived #877Derive
PartialEq
when possible: Derive PartialEq when possible #878"manually" implement
PartialEq
when we cannot derive it: "manually" implement PartialEq when it cannot be derived #879Derive
Eq
when possible: DeriveEq
when possible #880Eq
when we cannot derive it: "manually" implement Eq when we cannot derive it #881Derive
PartialOrd
when possible: Derive PartialOrd when possible #882"manually" implement
PartialOrd
when we cannot derive it: "manually" implement PartialOrd when we cannot derive it #883Derive
Ord
when possible: Derive Ord when possible #884Ord
when we cannot derive it: "manually" implement Ord when we cannot derive it #885The text was updated successfully, but these errors were encountered: