Function collections::slice::bytes::copy_memory[src]

pub fn copy_memory(dst: &mut [u8], src: &[u8])

Copies data from src to dst

src and dst must not overlap. Fails if the length of dst is less than the length of src.