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

Method new

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

Create a new column with the given header. # Arguments `header` - The column header text # Returns A new column with default alignment (left) and no width constraints.

(header: S)

Source from the content-addressed store, hash-verified

129 ///
130 /// A new column with default alignment (left) and no width constraints.
131 pub fn new<S: Into<String>>(header: S) -> Self {
132 Self {
133 header: header.into(),
134 alignment: Alignment::Left,
135 min_width: 0,
136 max_width: 0,
137 }
138 }
139
140 /// Set the alignment for this column.
141 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected