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 on theArchivedDecimal
type (according to the rules of the Decimal type).We also implement comparison between
Decimal
andArchivedDecimal
(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.