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

feat: eagerly implement common traits #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CardboardTurkey
Copy link

This adds eager implementations of the common traits to all public structs, as recommended in the Rust API guidelines.

This adds eager implementations of the common traits to all public
structs, as recommended in the Rust API [guidelines].

[guidelines]:
https://rust-lang.github.io/api-guidelines/interoperability.html#types-eagerly-implement-common-traits-c-common-traits
@CardboardTurkey
Copy link
Author

Some of the traits here might be inappropriate and I'd be happy to remove them if so. For my own use case I really just need the comparison and hashing traits.

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

Successfully merging this pull request may close these issues.

1 participant