Skip to content

default methods for the cmp traits #5590

Closed
@thestinger

Description

@thestinger

(blocked on working default methods)

Implementing TotalOrd should implement Ord with default methods, and implementing TotalEq should provide a default Eq. Types with only a partial ordering can implement Eq/Ord, and types with two different ordering semantics (floats) can implement both.

A TotalOrd implementation can also provide TotalEq via a default, so most types would only implement one trait directly or just derive everything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions