Open
Description
Feature gate: #![feature(mem_copy_fn)]
This is a tracking issue for core::mem::copy
, which is a way - like mem::drop
- to copy a value without creating a new closure.
Public API
// core::mem
pub fn copy<T: Copy>(x: &T) -> T {}
Steps / History
- Implementation: Add
core::mem::copy
to complementcore::mem::drop
. #95534 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- Should we find a way to make this an associated function on
Copy
instead?