Returns the current level of the research branch.
(&self, branch: &Branch)
| 81 | |
| 82 | /// Returns the current level of the research branch. |
| 83 | pub fn get_level(&self, branch: &Branch) -> Level { |
| 84 | if let Some(level) = self.level.get(branch) { |
| 85 | *level |
| 86 | } else { |
| 87 | unreachable!(); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | fn get_level_mut(&mut self, branch: &Branch) -> &mut Level { |
| 92 | if let Some(level) = self.level.get_mut(branch) { |
no outgoing calls
no test coverage detected