| 27 | } |
| 28 | |
| 29 | struct Deserializer<'gil> { |
| 30 | py: Python<'gil>, |
| 31 | obj: PyObject, |
| 32 | |
| 33 | /// Iterator of `obj`. Constructed on demand. |
| 34 | obj_iter: Option<PyIterator<'gil>>, |
| 35 | |
| 36 | /// Used by `MapAccess`. The `iter` produces `(key, value)` at a time, the |
| 37 | /// `value` is temporarily stored here for `MapAccess::next_value_seed` to |
| 38 | /// pick up. |
| 39 | pending_value: Option<PyObject>, |
| 40 | } |
| 41 | |
| 42 | impl<'gil> Deserializer<'gil> { |
| 43 | /// Constructs from |
nothing calls this directly
no outgoing calls
no test coverage detected