pub fn index(&mut self, t: ykpack::Ty) -> ykpack::TyIndex {
        let next_idx = &mut self.next_idx;
        *self.map.entry(t).or_insert_with(|| {
            let idx = *next_idx;
            *next_idx += 1;
            idx
        })
    }
/// Get the index of a type. If this is the first time we have seen this type, a new index is
/// allocated and returned.
///
/// Note that the index is only unique within the scope of the current compilation unit.
/// To make a globally unique ID, we pair the index with CGU hash (see ykpack::CguHash).
Get the index of a type. If this is the first time we have seen this type, a new index is
allocated and returned.

Note that the index is only unique within the scope of the current compilation unit.
To make a globally unique ID, we pair the index with CGU hash .
Get the index of a type . If this is the first time we have seen this type a new index is allocated and returned . Note that the index is only unique within the scope of the current compilation unit . To make a globally unique ID we pair the index with CGU hash .
pub fn index(&mut self, t: ykpack::Ty) -> ykpack::TyIndex {
        let next_idx = &mut self.next_idx;
        *self.map.entry(t).or_insert_with(|| {
            let idx = *next_idx;
            *next_idx += 1;
            idx
        })
    }
pub fn index ( & mut self , t : ykpack :: Ty ) -> ykpack :: TyIndex { let next_idx = & mut self . next_idx ; * self . map . entry ( t ) . or_insert_with ( | | { let idx = * next_idx ; * next_idx += 1 ; idx } ) }
Get the index of a type.
Get the index of a type .
&mut self
t
ykpack::Ty