Skip to content

Add values_mut to {BTree, Hash}Map #32551

Closed
@LukasKalbertodt

Description

@LukasKalbertodt

I don't understand why there is a values() method, but no values_mut() method for map-collections. While keys_mut() can't work, values_mut() shouldn't be a problem, right?

It would be equivalent to map.iter_mut().map(|(_, v)| v).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-collectionsArea: `std::collections`B-unstableBlocker: Implemented in the nightly compiler and unstable.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions