Function slice_copy::copy [] [src]

pub fn copy<T>(dst: &mut [T], src: &[T]) -> usize where
    T: Copy

Copies as many T as possible from src into dst, returning the number of T copied. This function is short form for dst.copy_from_slice(src), but accounts for if their lengths are unequal to avoid panics.