Create a row from a vector of values. # Arguments `cells` - The cell values # Returns A new row containing the given values.
(cells: I)
| 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 | |
| 236 | impl<I, S> From<I> for Row |