(&self)
| 16 | |
| 17 | impl RowStruct { |
| 18 | pub(crate) fn required_dimension(&self) -> Dimension { |
| 19 | let mut widths = Vec::with_capacity(self.cells.len()); |
| 20 | let mut height = 0; |
| 21 | |
| 22 | for cell in self.cells.iter() { |
| 23 | let cell_dimension = cell.required_dimension(); |
| 24 | |
| 25 | widths.push(cell_dimension.width); |
| 26 | |
| 27 | height = std::cmp::max(cell_dimension.height, height); |
| 28 | } |
| 29 | |
| 30 | Dimension { widths, height } |
| 31 | } |
| 32 | |
| 33 | pub(crate) fn buffers( |
| 34 | &self, |