Function lrs::mem::unsafe_copy

Copies bytes from one slice to another even if the type does not implement Copy.

Syntax

unsafe fn unsafe_copy<T>(dst: &mut [T], src: &[T]) -> usize

Arguments

NameDescription
dst

The slice in which the objects will be stored.

src

The slice from which the objects will be copied.

Return value

Returns the number of objects copied.

Remarks

The number of entries copied is the minimum length of both slices.