pub struct UnitIndex<R: Reader> { /* private fields */ }
Expand description
The partially parsed index from a DebugCuIndex
or DebugTuIndex
.
Implementations§
source§impl<R: Reader> UnitIndex<R>
impl<R: Reader> UnitIndex<R>
sourcepub fn find(&self, id: u64) -> Option<u32>
pub fn find(&self, id: u64) -> Option<u32>
Find id
in the index hash table, and return the row index.
id
may be a compilation unit ID if this index is from .debug_cu_index
,
or a type signature if this index is from .debug_tu_index
.
sourcepub fn sections(&self, row: u32) -> Result<UnitIndexSectionIterator<'_, R>>
pub fn sections(&self, row: u32) -> Result<UnitIndexSectionIterator<'_, R>>
Return the section offsets and sizes for the given row index.
sourcepub fn section_count(&self) -> u32
pub fn section_count(&self) -> u32
Return the number of sections.
sourcepub fn unit_count(&self) -> u32
pub fn unit_count(&self) -> u32
Return the number of units.
sourcepub fn slot_count(&self) -> u32
pub fn slot_count(&self) -> u32
Return the number of slots.