Skip to content

[Variant] Impl PartialEq for VariantObject #7943 #7948

@alamb

Description

@alamb

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
According to the spec, field values are not required to be in the same order as the field IDs, to enable flexibility when constructing Variant values.

Describe the solution you'd like
Instead of comparing the raw bytes of 2 variant objects, this implementation recursively checks whether the field values are equal -- regardless of their order

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions