numcodecs_reinterpret

Function reinterpret_array_into

Source
pub fn reinterpret_array_into<'a, T: Copy, U: ArrayDType, D: Dimension>(
    encoded: ArrayView<'_, T, D>,
    reinterpret: impl Fn(T) -> U,
    decoded: AnyArrayViewMut<'a>,
) -> Result<(), ReinterpretCodecError>
where U::RawData<ViewRepr<&'a mut ()>>: DataMut,
Expand description

Reinterpret the data elements of the encoded array using the provided reinterpret closure into the decoded array.

§Errors

Errors with