pub fn memcpy<T: Copy>(dst: &mut [T], src: &[T]) {
    assert!(src.len() <= dst.len());
    unsafe {
        ptr::copy(src.as_ptr(), dst.as_mut_ptr(), src.len());
    }
}
/// Efficient function for copying data from one slice to another.
///
/// It copies all data from the src slice into the dst slice.
///
/// # Panics
/// The function panics when src.len() > dst.len()
Efficient function for copying data from one slice to another.
It copies all data from the src slice into the dst slice.
Efficient function for copying data from one slice to another . It copies all data from the src slice into the dst slice .
pub fn memcpy<T: Copy>(dst: &mut [T], src: &[T]) {
    assert!(src.len() <= dst.len());
    unsafe {
        ptr::copy(src.as_ptr(), dst.as_mut_ptr(), src.len());
    }
}
pub fn memcpy < T : Copy > ( dst : & mut [ T ] , src : & [ T ] ) { assert ! ( src len ( ) dst len ( ) ) ; unsafe { ptr :: copy ( src . as_ptr ( ) , dst . as_mut_ptr ( ) , src . len ( ) ) ; } }
Efficient function for copying data from one slice to another.
Efficient function for copying data from one slice to another .
dst
&mut [T]
src
&[T]
dst
&mut [T]
src
&[T]
panics
The function panics when src.len() > dst.len()
The function panics when src . len () > dst . len ()