Skip to content

Make "mem::replace to keep owned values in changed enums" example more general #38

@briansmith

Description

@briansmith

The example seems unrealistic because it uses if let instead of match. The example should use match since it is more general. Most of the cases where I would use this pattern would require the use of match.

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