Skip to content

Document the implementation of #[derive(Ord)] #26620

Closed
@anmej

Description

@anmej

(0, (1,0)) < (1, (0,1)) but ((1,0), 0) > ((0,1), 1)
The order of the fields is important, and this is something that should be clearly documented, as changing the order of the fields of a struct can change program logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions