(&self, container: Bound<'py, PyAny>)
| 72 | } |
| 73 | |
| 74 | pub fn view<'py>(&self, container: Bound<'py, PyAny>) -> PyResult<Bound<'py, PyUntypedArray>> { |
| 75 | match self { |
| 76 | PyFloatVecWrapper::F32(v) => view_scalar_generic(v, container), |
| 77 | PyFloatVecWrapper::F64(v) => view_scalar_generic(v, container), |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | /// Transmutes a mutable reference from a generic type to a concrete type if they are identical, otherwise returns None |
no test coverage detected