(&mut self, id: &KId<M>)
| 260 | } |
| 261 | |
| 262 | pub fn get_const(&mut self, id: &KId<M>) -> Result<KConst<M>, TcError<M>> { |
| 263 | self |
| 264 | .try_get_const(id)? |
| 265 | .ok_or_else(|| TcError::UnknownConst(id.addr.clone())) |
| 266 | } |
| 267 | |
| 268 | pub fn has_const(&mut self, id: &KId<M>) -> Result<bool, TcError<M>> { |
| 269 | Ok(self.try_get_const(id)?.is_some()) |
no test coverage detected