(rows: T)
| 388 | |
| 389 | impl<'a, T: IntoIterator<Item = &'a Row>> From<T> for RowCollection { |
| 390 | fn from(rows: T) -> Self { |
| 391 | let mut encoded = Rows::builder(0, 0); |
| 392 | let mut diffs = vec![]; |
| 393 | |
| 394 | for row in rows { |
| 395 | encoded.push(row.as_row_ref()); |
| 396 | diffs.push(NonZeroUsize::MIN); |
| 397 | } |
| 398 | |
| 399 | RowCollection { |
| 400 | rows: encoded.build(), |
| 401 | diffs: diffs.into(), |
| 402 | } |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | #[mz_ore::test] |
nothing calls this directly
no test coverage detected