Get statistics about the workspace state.
(&self)
| 677 | |
| 678 | /// Get statistics about the workspace state. |
| 679 | pub fn stats(&self) -> WorkspaceStats { |
| 680 | WorkspaceStats { |
| 681 | up_context_count: self.predecessors.len(), |
| 682 | down_context_count: self.successors.len(), |
| 683 | pending_edge_count: self.pending_edges.len(), |
| 684 | deleted_edge_count: self.deleted_edges.len(), |
| 685 | parent_count: self.parents.len(), |
| 686 | missing_context_count: self.missing_contexts.len(), |
| 687 | zombie_count: self.zombies.len(), |
| 688 | rooted_count: self.rooted.len(), |
| 689 | } |
| 690 | } |
| 691 | } |
| 692 | |
| 693 | impl Default for Workspace { |