Flat the list of current groups into one main group
(&mut self)
| 34 | impl GitQLObject { |
| 35 | /// Flat the list of current groups into one main group |
| 36 | pub fn flat(&mut self) { |
| 37 | let mut rows: Vec<Row> = vec![]; |
| 38 | for group in &mut self.groups { |
| 39 | rows.append(&mut group.rows); |
| 40 | } |
| 41 | |
| 42 | self.groups.clear(); |
| 43 | self.groups.push(Group { rows }) |
| 44 | } |
| 45 | |
| 46 | /// Returns true of there is no groups |
| 47 | pub fn is_empty(&self) -> bool { |
no outgoing calls
no test coverage detected