(
counters: &'slice [&'counter AtomicUsize],
)
| 1626 | ) where |
| 1627 | OP: Fn(&mut T) + Sync, |
| 1628 | { |
| 1629 | let Tree { value, children } = self; |
| 1630 | scope.spawn(move |_: &Worker| { |
| 1631 | for child in children { |
| 1632 | scope.spawn(move |_: &Worker| { |
| 1633 | let child = child; |
| 1634 | child.update_in_scope(scope, op) |
| 1635 | }); |
| 1636 | } |
| 1637 | }); |
| 1638 | |
| 1639 | op(value); |
| 1640 | } |
| 1641 | } |
| 1642 |