()
| 1459 | impl<T: Send> Tree<T> { |
| 1460 | fn iter(&self) -> vec::IntoIter<&T> { |
| 1461 | once(&self.value) |
| 1462 | .chain(self.children.iter().flat_map(Tree::iter)) |
| 1463 | .collect::<Vec<_>>() // seems like it shouldn't be needed... but prevents overflow |
| 1464 | .into_iter() |
| 1465 | } |
| 1466 | |
| 1467 | fn update<OP>(&mut self, op: OP) |
| 1468 | where |
| 1469 | OP: Fn(&mut T) + Sync, |
| 1470 | T: Send, |
| 1471 | { |
| 1472 | scope(|scope| self.update_in_scope(scope, &op)); |
nothing calls this directly
no test coverage detected