Function lrs::mem::copy

Copies bytes from one slice to another.

Syntax

fn copy<T>(dst: &mut [T], src: &[T]) -> usize
    where T: Copy,

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.