pub fn slice_copy_safe<T: Copy>(dst: &mut [T], src: &[T]) -> usize
[<[T]>::copy_from_slice] panics if the two slices have different lengths. This one just returns the copied amount.
<[T]>::copy_from_slice