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