MCPcopy Create free account
hub / github.com/devashishdxt/cli-table / required_dimension

Method required_dimension

cli-table/src/row.rs:18–31  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

16
17impl 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,

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected