pub(super) unsafe trait CopySpec: Clone {
// Required methods
unsafe fn clone_one(src: &Self, dst: *mut Self);
unsafe fn clone_slice(src: &[Self], dst: *mut [Self]);
}
Expand description
Private specialization trait used by CloneToUninit, as per the dev guide.
Required Methods§
unsafe fn clone_one(src: &Self, dst: *mut Self)
unsafe fn clone_slice(src: &[Self], dst: *mut [Self])
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.