Function alloc::collections::btree::node::move_to_slice
source · fn move_to_slice<T>(src: &mut [MaybeUninit<T>], dst: &mut [MaybeUninit<T>])
Expand description
Moves all values from a slice of initialized elements to a slice
of uninitialized elements, leaving behind src
as all uninitialized.
Works like dst.copy_from_slice(src)
but does not require T
to be Copy
.