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

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

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 <mail@gerdzellweger.com>
@gz
Copy link
Author

gz commented Feb 13, 2024

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

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.

None yet

1 participant