Copies bytes from one slice to another.
fn copy<T>(dst: &mut [T], src: &[T]) -> usize
where T: Copy,| Name | Description |
|---|---|
| dst | The slice in which the objects will be stored. |
| src | The slice from which the objects will be copied. |
Returns the number of objects copied.
The number of entries copied is the minimum length of both slices.