pub(crate) struct ResUnit<R: Reader> {
offset: DebugInfoOffset<R::Offset>,
dw_unit: Unit<R>,
pub(crate) lang: Option<DwLang>,
lines: LazyLines,
functions: LazyFunctions<R>,
dwo: LazyCell<Result<Option<Box<DwoUnit<R>>>, Error>>,
}
Fields§
§offset: DebugInfoOffset<R::Offset>
§dw_unit: Unit<R>
§lang: Option<DwLang>
§lines: LazyLines
§functions: LazyFunctions<R>
§dwo: LazyCell<Result<Option<Box<DwoUnit<R>>>, Error>>
Implementations§
source§impl<R: Reader> ResUnit<R>
impl<R: Reader> ResUnit<R>
pub(crate) fn unit_ref<'a>(&'a self, sections: &'a Dwarf<R>) -> UnitRef<'a, R>
sourcepub(crate) fn dwarf_and_unit<'unit, 'ctx: 'unit>(
&'unit self,
ctx: &'ctx Context<R>,
) -> LookupResult<SimpleLookup<Result<(DebugFile, UnitRef<'unit, R>), Error>, R, impl FnOnce(Option<Arc<Dwarf<R>>>) -> Result<(DebugFile, UnitRef<'unit, R>), Error>>>
pub(crate) fn dwarf_and_unit<'unit, 'ctx: 'unit>( &'unit self, ctx: &'ctx Context<R>, ) -> LookupResult<SimpleLookup<Result<(DebugFile, UnitRef<'unit, R>), Error>, R, impl FnOnce(Option<Arc<Dwarf<R>>>) -> Result<(DebugFile, UnitRef<'unit, R>), Error>>>
Returns the DWARF sections and the unit.
Loads the DWO unit if necessary.
pub(crate) fn parse_lines( &self, sections: &Dwarf<R>, ) -> Result<Option<&Lines>, Error>
pub(crate) fn parse_functions<'unit, 'ctx: 'unit>( &'unit self, ctx: &'ctx Context<R>, ) -> LookupResult<impl LookupContinuation<Output = Result<&'unit Functions<R>, Error>, Buf = R>>
pub(crate) fn parse_inlined_functions<'unit, 'ctx: 'unit>( &'unit self, ctx: &'ctx Context<R>, ) -> LookupResult<impl LookupContinuation<Output = Result<(), Error>, Buf = R> + 'unit>
pub(crate) fn find_location( &self, probe: u64, sections: &Dwarf<R>, ) -> Result<Option<Location<'_>>, Error>
pub(crate) fn find_location_range( &self, probe_low: u64, probe_high: u64, sections: &Dwarf<R>, ) -> Result<Option<LineLocationRangeIter<'_>>, Error>
pub(crate) fn find_function_or_location<'unit, 'ctx: 'unit>( &'unit self, probe: u64, ctx: &'ctx Context<R>, ) -> LookupResult<impl LookupContinuation<Output = Result<(Option<&'unit Function<R>>, Option<Location<'unit>>), Error>, Buf = R>>
Auto Trait Implementations§
impl<R> !Freeze for ResUnit<R>
impl<R> !RefUnwindSafe for ResUnit<R>
impl<R> Send for ResUnit<R>
impl<R> !Sync for ResUnit<R>
impl<R> Unpin for ResUnit<R>
impl<R> UnwindSafe for ResUnit<R>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more