MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / set_last_children_start

Method set_last_children_start

atomic-core/src/output/alive/graph.rs:226–230  ·  view source on GitHub ↗

Set the children start index for the last span. This should be called before pushing that span's children. # Panics Panics if the graph has no vertices.

(&mut self)

Source from the content-addressed store, hash-verified

224 ///
225 /// Panics if the graph has no vertices.
226 pub fn set_last_children_start(&mut self) {
227 if let Some(last) = self.vertices.last_mut() {
228 last.children = self.children.len();
229 }
230 }
231
232 /// Get a reference to a span by ID.
233 ///

Calls 1

lenMethod · 0.45