Function rel_core::rel_mem::replace_unsized_unchecked
source · [−]pub unsafe fn replace_unsized_unchecked<T, R, E>(dest: In<Mut<'_, T>, R>, src: E)where
T: DropRaw + Pointee + ?Sized,
R: Region,
E: Emplace<T, R>,
Expand description
Replaces the unsized value in dest
by emplacing src
into it.
Safety
The caller must guarantee that dest
must have the metadata returned from
src.emplaced_meta
.