Feature gate: #![feature(clone_to_uninit)]
This is a tracking issue for CloneToUninit
and its impls. This trait backs the behavior of Rc::make_mut
and Arc::make_mut
, and likely in the future also Box::clone
.
// core::clone pub unsafe trait CloneToUninit { unsafe fn clone_to_uninit(&self, dst: *mut Self); } unsafe impl<T: Clone> CloneToUninit for T; unsafe impl<T: Clone> CloneToUninit for [T]; // TODO: // unsafe impl CloneToUninit for str; // unsafe impl CloneToUninit for CStr; // unsafe impl CloneToUninit for OsStr; // unsafe impl CloneToUninit for Path;Steps / History
{Rc,Arc}::make_mut()
to unsized types. #116113Box::clone
to be based on CloneToUninit
*mut ()
in the signature instead of *mut Self
. This makes CloneToUninit dyn-safe. Generalize {Rc,Arc}::make_mut()
to unsized types. #116113 (comment)RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4