(&self, py: Python)
| 45 | } |
| 46 | |
| 47 | fn to_object(&self, py: Python) -> PyResult<PyObject> { |
| 48 | self.storage |
| 49 | .values() |
| 50 | .next() |
| 51 | .cloned() |
| 52 | .map(|x| x.into_object(py)) |
| 53 | .unwrap_or_else(|| T::default().into_object(py)) |
| 54 | } |
| 55 | |
| 56 | fn to_dict(&self, py: Python) -> PyResult<PyObject> { |
| 57 | use pyo3::types::IntoPyDict; |
no test coverage detected