MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / add_row

Method add_row

atomic-cli/src/output/table.rs:378–385  ·  view source on GitHub ↗

Add a row to the table. # Arguments `row` - The row data # Returns Self for method chaining. # Example ```rust,ignore table.add_row(vec!["main", "ABC123", "42"]); ```

(&mut self, row: I)

Source from the content-addressed store, hash-verified

376 /// table.add_row(vec!["main", "ABC123", "42"]);
377 /// ```
378 pub fn add_row<I, S>(&mut self, row: I) -> &mut Self
379 where
380 I: IntoIterator<Item = S>,
381 S: Into<String>,
382 {
383 self.rows.push(Row::from_vec(row));
384 self
385 }
386
387 /// Calculate the width for each column.
388 ///

Callers 14

runMethod · 0.80
runMethod · 0.80
executeMethod · 0.80
output_tableMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
test_table_add_rowFunction · 0.80
test_table_render_basicFunction · 0.80
test_table_missing_cellsFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by 8

test_table_add_rowFunction · 0.64
test_table_render_basicFunction · 0.64
test_table_missing_cellsFunction · 0.64
test_table_unicodeFunction · 0.64
test_table_emojiFunction · 0.64