Skip to content

kvstore: API for remove and clone #360

Description

@nrc

A method which effectively just does:

let result = t.get(key).cloned();
t.remove(key);
result

where the value implements Clone, for an opt-in, ergonomic way to get the usual semantics for remove.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions