pub unsafe fn view_mut_as<A, B, S, D>(
array: &mut ArrayBase<S, D>,
) -> Result<ViewMut<'_, B, D>, CoreError>Expand description
Create a mutable view of an array with a different element type
§Safety
This function is unsafe because it does not check that the memory layout of the source type is compatible with the destination type.
§Arguments
array- The array to view
§Returns
A mutable view of the array with elements interpreted as the new type