fn di_to_unit(
        &self,
        offset: gimli::DebugInfoOffset,
    ) -> Option<(&gimli::Unit<Reader>, UnitOffset<'i>)> {
        // if we can find a unit that corresponds to this offset
        if let Some(unit) = self
            .units
            .range((Bound::Unbounded, Bound::Included(&offset)))
            .next_back()
            .map(|u| u.1)
        {
            // we found a unit, now lets convert the info offset
            // into a local offset. This should always succeed.
            if let Some(offset) = offset.to_unit_offset(&unit.header) {
                Some((unit, offset))
            } else {
                None
            }
        } else {
            None
        }
    }
// converter a debuginfo offset into the unit it came from and the redirected unit offset
converter a debuginfo offset into the unit it came from and the redirected unit offset
converter a debuginfo offset into the unit it came from and the redirected unit offset
fn di_to_unit(
        &self,
        offset: gimli::DebugInfoOffset,
    ) -> Option<(&gimli::Unit<Reader>, UnitOffset<'i>)> {
        // if we can find a unit that corresponds to this offset
        if let Some(unit) = self
            .units
            .range((Bound::Unbounded, Bound::Included(&offset)))
            .next_back()
            .map(|u| u.1)
        {
            // we found a unit, now lets convert the info offset
            // into a local offset. This should always succeed.
            if let Some(offset) = offset.to_unit_offset(&unit.header) {
                Some((unit, offset))
            } else {
                None
            }
        } else {
            None
        }
    }
fn di_to_unit ( & self , offset : gimli :: DebugInfoOffset , ) -> Option < ( & gimli :: Unit < Reader > , UnitOffset < ' i > ) > { // if we can find a unit that corresponds to this offset if let Some ( unit ) = self . units . range ( ( Bound :: Unbounded , Bound :: Included ( & offset ) ) ) . next_back ( ) . map ( | u | u . 1 ) { // we found a unit, now lets convert the info offset // into a local offset. This should always succeed. if let Some ( offset ) = offset . to_unit_offset ( & unit . header ) { Some ( ( unit , offset ) ) } else { None } } else { None } }
converter a debuginfo offset into the unit it came from and the redirected unit offset
converter a debuginfo offset into the unit it came from and the redirected unit offset
&self
offset
gimli::DebugInfoOffset
&self
offset
gimli::DebugInfoOffset