Skip to content

{MutexGuard, RwLockReadGuard, RwLockWriteGuard}::map #44189

Closed
@QuietMisdreavus

Description

@QuietMisdreavus

Currently, the RefCell borrow guards have a function called map which allows you to transform a borrow of a whole struct to a borrow of one of its fields (or of some related reference with the same lifetime). Would it be possible to add these methods to Mutex and RwLock?

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions