MCPcopy Index your code
hub / github.com/PowerShell/DSC / add_row

Method add_row

dsc/src/tablewriter.rs:41–48  ·  view source on GitHub ↗

Add a row to the table. # Arguments `row` - The row to add

(&mut self, row: Vec<String>)

Source from the content-addressed store, hash-verified

39 ///
40 /// * `row` - The row to add
41 pub fn add_row(&mut self, row: Vec<String>) {
42 for (i, column) in row.iter().enumerate() {
43 if column.len() > self.column_widths[i] {
44 self.column_widths[i] = column.len();
45 }
46 }
47 self.rows.push(row);
48 }
49
50 /// Print the table to the console.
51 ///

Callers 3

list_extensionsFunction · 0.80
list_functionsFunction · 0.80
list_resourcesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected