slice_copy_safe

Function slice_copy_safe 

Source
pub fn slice_copy_safe<T: Copy>(dst: &mut [T], src: &[T]) -> usize
Expand description

[<[T]>::copy_from_slice] panics if the two slices have different lengths. This one just returns the copied amount.