()
| 1472 | scope(|scope| self.update_in_scope(scope, &op)); |
| 1473 | } |
| 1474 | |
| 1475 | fn update_in_scope<'scope, 'env, OP>( |
| 1476 | &'env mut self, |
| 1477 | scope: &'scope Scope<'scope, 'env>, |
| 1478 | op: &'scope OP, |
| 1479 | ) where |
| 1480 | OP: Fn(&mut T) + Sync, |
| 1481 | { |
| 1482 | let Tree { value, children } = self; |
| 1483 | scope.spawn(move |_: &Worker| { |
| 1484 | for child in children { |
| 1485 | scope.spawn(move |_: &Worker| { |
| 1486 | let child = child; |
| 1487 | child.update_in_scope(scope, op) |
| 1488 | }); |
| 1489 | } |
| 1490 | }); |
nothing calls this directly
no test coverage detected