pub trait CopyNew: Sized {
// Required method
unsafe fn copy_new(src: &Self, dst: Pin<&mut MaybeUninit<Self>>);
}
Expand description
Types which can be copy-constructed from an existing value into some provided storage.
Required Methods§
sourceunsafe fn copy_new(src: &Self, dst: Pin<&mut MaybeUninit<Self>>)
unsafe fn copy_new(src: &Self, dst: Pin<&mut MaybeUninit<Self>>)
§Safety
- the same safety requirements as
New::new()
apply with respect todst
Object Safety§
This trait is not object safe.