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

align derived traits of wrapper types with those of the underlying types #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

colstrom
Copy link

@colstrom colstrom commented Jul 5, 2023

This change derives the following traits for the wrapper types, given that the underlying types also do the same.

Duration

  • Default
  • PartialOrd
  • Ord

Timestamp

  • Copy
  • Hash
  • PartialOrd
  • Ord

Minor version incremented in Cargo.toml:

If I understand Traits correctly, this should be backwards-compatible, since no dependent crate would be able to provide a conflicting implementation where both the trait and the type are foreign. If this understanding is incorrect, then this should be a major version bump, not a minor one (assuming Semantic Versioning, which seemed like a reasonable guess, since I didn't see an explicit indication of versioning policy).

This change derives the following traits for the wrapper types, given that the underlying types also do the same.

`Duration`
- `Default`
- `PartialOrd`
- `Ord`

`Timestamp`
-  `Copy`
-  `Hash`
- `PartialOrd`
- `Ord`
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