rust-numpy v0.10.0
I want to note that there are two important changes in this version. One is that rust-numpy works on stable Rust as per PyO3 0.11, and the other is PyReadonlyArray.
To prevent undefined behavior, PyArray::as_slice and families are unsafe now. Please use the safe PyReadonlyArray::as_slice instead.
- Remove
ErrorKindand introduce some concrete error types PyArray::as_slice,PyArray::as_slice_mut,PyArray::as_array, andPyArray::as_array_mutis now unsafe.- Introduce
PyArray::as_cell_slice,PyArray::to_vec, andPyArray::to_owned_array - Rename
TypeNumtraitElement, andNpyDataTypeDataType