Skip to main content

replace_array_items

Function replace_array_items 

Source
pub const fn replace_array_items<T: Copy, const N: usize>(
    dst: [T; N],
    src: &[T],
    start: usize,
) -> [T; N]
Expand description

Replace bytes in an array with those from a slice. This is a polyfill for [T]::copy_from_slice in const.