pub fn copy_into<T: Copy + Send + Sync, Op: ElementOp<T>>(
dest: &mut StridedViewMut<'_, T>,
src: &StridedView<'_, T, Op>,
exec: Exec<'_>,
) -> Result<()>Expand description
Copy elements from source to destination: dest[i] = src[i].
ยงErrors
Returns StridedError::RankMismatch or
StridedError::ShapeMismatch when the views describe different
extents, and StridedError::OffsetOverflow when the element count of
the shape does not fit in usize. The generic element path also returns
StridedError::NonInjectiveOutputLayout when the destination layout
cannot be proven representable and injective: two logical indices name
one offset, or the address span is too large to represent. Nothing is
written unless validation succeeds.