Function slice_copy::clone [] [src]

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

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