Trait moveit::ctor::CopyCtor [−][src]
pub unsafe trait CopyCtor: Sized { unsafe fn copy_ctor(src: &Self, dest: Pin<&mut MaybeUninit<Self>>); }
A copy constructible type: a destination-aware Clone
.
Safety
After CopyCtor::copy_ctor()
is called:
dest
must have been initialized.
Required methods
unsafe fn copy_ctor(src: &Self, dest: Pin<&mut MaybeUninit<Self>>)
[src]
Copy-construct src
into dest
, effectively re-pinning it at a new
location.
Safety
The same safety requirements of Ctor::ctor()
apply.