Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.
# Cargo.toml
[dependencies]
replace_with = "0.1.8"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Replace a mutable value with a new value computed from the old one.
Ensure closure does not panic or use std::mem::replace instead.
No dependency data recorded yet.