pub fn undo_swizzle_reshape_into<T: Copy>(
encoded: ArrayView<'_, T, IxDyn>,
decoded: ArrayViewMut<'_, T, IxDyn>,
axes: &[AxisGroup],
) -> Result<(), SwizzleReshapeCodecError>Expand description
Reverts the swizzle and reshape of the encoded array with the axes and
outputs it into the decoded array.
§Errors
Errors with
SwizzleReshapeCodecError::InvalidAxisIndexif any axis is out of boundsSwizzleReshapeCodecError::InvalidAxisPermutationif theaxespermutation does not contain every axis index exactly onceSwizzleReshapeCodecError::MultipleRestAxesif theaxespermutation contains more than oneRest-axes markerSwizzleReshapeCodecError::MismatchedDecodeIntoArrayif theencodedarray’s shape does not match the shape that swizzling and reshaping an array of thedecodedarray’s shape would have produced