(
&mut self,
py: Python<'py>,
peek_first: Peek,
vec: &mut SmallVec<[Bound<'py, PyAny>; 8]>,
)
| 172 | } |
| 173 | |
| 174 | fn parse_array<'py>( |
| 175 | &mut self, |
| 176 | py: Python<'py>, |
| 177 | peek_first: Peek, |
| 178 | vec: &mut SmallVec<[Bound<'py, PyAny>; 8]>, |
| 179 | ) -> JsonResult<()> { |
| 180 | let v = self.check_take_value(py, peek_first)?; |
| 181 | vec.push(v); |
| 182 | while let Some(peek) = self.parser.array_step()? { |
| 183 | let v = self.check_take_value(py, peek)?; |
| 184 | vec.push(v); |
| 185 | } |
| 186 | Ok(()) |
| 187 | } |
| 188 | |
| 189 | fn parse_object<'py>(&mut self, py: Python<'py>, dict: &Bound<'py, PyDict>) -> JsonResult<()> { |
| 190 | let set_item = |key: Bound<'py, PyString>, value: Bound<'py, PyAny>| { |
no test coverage detected