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 traits on the ArchivedDecimal. #639

Closed
wants to merge 1 commit into from
Closed

Conversation

gz
Copy link

@gz gz commented Jan 15, 2024

rkyv generates a separate type ArchivedDecimal, which represents the serialized value. In this PR we implement several traits to allow for ordering and equality on the ArchivedDecimal type (according to the rules of the Decimal type).

We also implement comparison between Decimal and ArchivedDecimal (PartialOrd) which is helpful to efficiently compare e.g., a more complex in-memory type that uses decimal as part of its fields with the serialized counter-part.

rkyv generates a separate type `ArchivedDecimal`, which represents
the serialized value. In this PR we implement several traits
to allow for ordering and equality traits on the ArchivedDecimal type
(according to the rules of the Decimal type).

We also implement comparison between `Decimal` and `ArchivedDecimal`
(PartialOrd) which is helpful to efficiently compare e.g., a more
complex in-memory type that uses decimal with it's serialized
counter-part like something that's stored on-disk.

Signed-off-by: Gerd Zellweger <[email protected]>
@gz
Copy link
Author

gz commented Feb 13, 2024

hi, is there anything I can do to move this PR forward?

@Tony-Samuels
Copy link
Collaborator

Closing as we're going to be stuck on 0.7 to avoid breaking changes (see #682), and we'll be pushing users to use the remote derive feature, where they can add the traits they need (see #683).

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.

2 participants