Skip to content

Rename Option's swap_unwrap and friends to take_unwrap and friends. #7764

Closed
@bblum

Description

@bblum

It is a better name. I was about to add fn swap(&mut self) -> Option<T> and realized it should really be named take. But it should be consistent with all the other ones, including also swap_map, which is not in master yet but will be soon...

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.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