(&self, value: &str)
| 201 | } |
| 202 | |
| 203 | fn get_binding(&self, value: &str) -> Option<String> { |
| 204 | self.scopes |
| 205 | .iter() |
| 206 | .find_map(|scope| scope.get(value)) |
| 207 | .cloned() |
| 208 | } |
| 209 | |
| 210 | fn is_defined_in_current_scope(&self, value: &str) -> bool { |
| 211 | self.scopes.front().unwrap().get(value).is_some() |