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

Method from_vec

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

Create a row from a vector of values. # Arguments `cells` - The cell values # Returns A new row containing the given values.

(cells: I)

Source from the content-addressed store, hash-verified

223 ///
224 /// A new row containing the given values.
225 pub fn from_vec<I, S>(cells: I) -> Self
226 where
227 I: IntoIterator<Item = S>,
228 S: Into<String>,
229 {
230 Self {
231 cells: cells.into_iter().map(|s| s.into()).collect(),
232 }
233 }
234}
235
236impl<I, S> From<I> for Row

Callers

nothing calls this directly

Calls 2

collectMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected