Find the fork group a vertex belongs to, if any.
(&self, vid: VertexId)
| 118 | |
| 119 | /// Find the fork group a vertex belongs to, if any. |
| 120 | pub fn fork_group_for(&self, vid: VertexId) -> Option<&[VertexId]> { |
| 121 | self.unresolved_forks |
| 122 | .iter() |
| 123 | .find(|group| group.contains(&vid)) |
| 124 | .map(|g| g.as_slice()) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | impl Default for ResolvedConflicts { |
no test coverage detected