Retain only the indicated columns in the presented order.
(mut self, columns: I)
| 116 | |
| 117 | /// Retain only the indicated columns in the presented order. |
| 118 | pub fn project<I>(mut self, columns: I) -> Self |
| 119 | where |
| 120 | I: IntoIterator<Item = usize> + std::fmt::Debug, |
| 121 | { |
| 122 | self.projection = columns.into_iter().map(|c| self.projection[c]).collect(); |
| 123 | self |
| 124 | } |
| 125 | |
| 126 | /// Retain only rows satisfying these predicates. |
| 127 | /// |