(&mut self, rows: impl IntoIterator<Item = R>)
| 174 | } |
| 175 | |
| 176 | pub fn write(&mut self, rows: impl IntoIterator<Item = R>) -> anyhow::Result<()> { |
| 177 | for row in rows { |
| 178 | R::Record::from(row).serialize(&mut self.serializer)?; |
| 179 | } |
| 180 | Ok(()) |
| 181 | } |
| 182 | |
| 183 | pub fn close(self) -> anyhow::Result<()> { |
| 184 | let encoder = self |
no outgoing calls