Copies the buffer elements to a newly allocated vector. If the buffer is multi-dimensional, the elements are written in C-style order. Fails if the buffer format is not compatible with type `T`.
(&self, py: Python)
| 482 | /// |
| 483 | /// Fails if the buffer format is not compatible with type `T`. |
| 484 | pub fn to_vec<T: Element + Copy>(&self, py: Python) -> PyResult<Vec<T>> { |
| 485 | self.to_vec_impl(py, b'C') |
| 486 | } |
| 487 | |
| 488 | /// Copies the buffer elements to a newly allocated vector. |
| 489 | /// If the buffer is multi-dimensional, the elements are written in Fortran-style order. |