Returns the interned value for the given ID. This method is similar to `get`, but panics if no value with the given ID exists. It's a more convenient alternative when you know the ID exists. # Panics Panics if no item with the given ID exists in the map. # Examples ``` # use hashql_core::{heap::Heap, intern::{InternMap, Decompose, Interned}, id::{HasId, Id, newtype}}; # newtype!(struct ValueI
(&self, id: T::Id)
| 702 | /// // let non_existent = map.index(ValueId::from_u32(999)); |
| 703 | /// ``` |
| 704 | pub fn index(&self, id: T::Id) -> T { |
| 705 | let partial = self.index_partial(id); |
| 706 | |
| 707 | T::from_parts(id, partial) |
| 708 | } |
| 709 | |
| 710 | /// Retrieves the partial representation of an interned value by its ID. |
| 711 | /// |