pub unsafe fn replace<T>(dest: *mut T, src: T) -> T
src into the pointed
dest, returning the previous
Neither value is dropped.
This is only unsafe because it accepts a raw pointer. Otherwise, this operation is identical to
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.