Get a mutable borrow of the NumPy array # Panics Panics if the allocation backing the array is currently borrowed or if the array is [flagged as][flags] not writeable. For a non-panicking variant, use [`try_readwrite`][Self::try_readwrite]. [flags]: https://numpy.org/doc/stable/reference/generated/numpy.ndarray.flags.html
(&self)
| 1056 | /// |
| 1057 | /// [flags]: https://numpy.org/doc/stable/reference/generated/numpy.ndarray.flags.html |
| 1058 | fn readwrite(&self) -> PyReadwriteArray<'py, T, D> |
| 1059 | where |
| 1060 | T: Element, |
| 1061 | D: Dimension, |
| 1062 | { |
| 1063 | self.try_readwrite().unwrap() |
| 1064 | } |
| 1065 | |
| 1066 | /// Returns an [`ArrayView`] of the internal array. |
| 1067 | /// |