replace-map 0.0.5

Perform by-value operations through an &mut reference.
1
2
3
4
5
6
7
8
# Replace Map

> Replace the value at a mutable memory location using a `|: T| -> T` closure.

Does not create an intermediate value, so is more efficient and
ergonomic in cases where producing a value to pass to mem::replace
is hard.