Get the number of children for a span. This includes both regular and extra children.
(&self, id: VertexId)
| 335 | /// |
| 336 | /// This includes both regular and extra children. |
| 337 | pub fn child_count(&self, id: VertexId) -> usize { |
| 338 | let v = &self.vertices[id.index()]; |
| 339 | v.n_children + v.extra.len() |
| 340 | } |
| 341 | |
| 342 | /// Add an extra child to a span. |
| 343 | /// |
no test coverage detected