MCPcopy Create free account
hub / github.com/NthTensor/Forte / scope_panic_propagate_from_spawn

Function scope_panic_propagate_from_spawn

src/scope.rs:1461–1469  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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));

Callers

nothing calls this directly

Calls 4

resize_to_availableMethod · 0.80
scopeMethod · 0.80
depopulateMethod · 0.80
spawnMethod · 0.45

Tested by

no test coverage detected