get the bind vaule of this var
(&self, var: &VarName)
| 601 | |
| 602 | /// get the bind vaule of this var |
| 603 | pub fn get_bind(&self, var: &VarName) -> Result<Symbol<T>> { |
| 604 | let bind = self |
| 605 | .get_current_storage() |
| 606 | .get(var) |
| 607 | .ok_or_else(|| eyre::eyre!("get bind of var {var:?} failed")); |
| 608 | bind.cloned() |
| 609 | } |
| 610 | |
| 611 | pub fn get_bind_mut(&mut self, var: &VarName) -> Result<&mut Symbol<T>> { |
| 612 | self.get_current_storage_mut() |
no test coverage detected