Skip to content

Improved Partial{Eq,Ord} derive #3

Closed
@mcarton

Description

@mcarton

Provide derivative({PartialEq, Eq, PartialOrd, Ord}) with:

  • Eq:
    • custom bound
  • PartialEq:
    • custom bound
    • ignore on a field
    • compare_with on a field
  • Ord:
    • custom bound
    • ignore on a field
    • compare_with on a field
  • PartialOrd:
    • custom bound
    • ignore on a field
    • compare_with on a field

enum are tricky¹ as there is no stable way to compare discriminants yet. See rust-lang/rfcs#1696.


1: not for Eq.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions