Trait moveit::new::CopyNew[][src]

pub unsafe trait CopyNew: Sized {
    unsafe fn copy_new(src: &Self, this: Pin<&mut MaybeUninit<Self>>);
}
Expand description

A copy constructible type: a destination-aware Clone.

Safety

After CopyNew::copy_new() is called:

  • this must have been initialized.

Required methods

Copy-construct src into this, effectively re-pinning it at a new location.

Safety

The same safety requirements of New::new() apply.

Implementors