Retrieve the constant data given a handle.
(&self, constant_handle: Constant)
| 226 | |
| 227 | /// Retrieve the constant data given a handle. |
| 228 | pub fn get(&self, constant_handle: Constant) -> &ConstantData { |
| 229 | assert!(self.handles_to_values.contains_key(&constant_handle)); |
| 230 | self.handles_to_values.get(&constant_handle).unwrap() |
| 231 | } |
| 232 | |
| 233 | /// Link a constant handle to its value. This does not de-duplicate data but does avoid |
| 234 | /// replacing any existing constant values. use `set` to tie a specific `const42` to its value; |
no test coverage detected