Copies bytes from one slice to another even if the type does not implement Copy.
unsafe fn unsafe_copy<T>(dst: &mut [T], src: &[T]) -> usize
| 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.