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

Method set_columns

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

Set the columns with full configuration. Use this when you need to customize alignment or width constraints. # Arguments `columns` - The column configurations # Returns Self for method chaining. # Example ```rust,ignore let mut table = Table::new(); table.set_columns(vec![ Column::new("Name").align(Alignment::Left), Column::new("Count").align(Alignment::Right), ]); ```

(&mut self, columns: Vec<Column>)

Source from the content-addressed store, hash-verified

356 /// ]);
357 /// ```
358 pub fn set_columns(&mut self, columns: Vec<Column>) -> &mut Self {
359 self.columns = columns;
360 self
361 }
362
363 /// Add a row to the table.
364 ///

Callers 7

runMethod · 0.80
runMethod · 0.80
executeMethod · 0.80
output_tableMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by 1