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`.
A method which effectively just does:
where the value implements Clone, for an opt-in, ergonomic way to get the usual semantics for
remove.