Skip to content
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

Implement standard library traits for generated code #6

Open
hollinwilkins opened this issue Aug 23, 2017 · 0 comments
Open

Implement standard library traits for generated code #6

hollinwilkins opened this issue Aug 23, 2017 · 0 comments

Comments

@hollinwilkins
Copy link

hollinwilkins commented Aug 23, 2017

Generated code should have standard library traits implemented where appropriate. Let's track the list of traits to try implementing here.

List of traits for structs (i.e. Tables):

  • ToOwned
  • Hash
  • Copy and Clone (a table is just borrowed data so this should be efficient)

List of traits for enums:

  • Hash
  • PartialEq / Eq
  • PartialOrd / Ord
  • Copy and Clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant