Struct gimli::read::LocListIter
source · pub struct LocListIter<R: Reader> {
raw: RawLocListIter<R>,
base_address: u64,
debug_addr: DebugAddr<R>,
debug_addr_base: DebugAddrBase<R::Offset>,
}
Expand description
An iterator over a location list.
This iterator internally handles processing of base address selection entries and list end entries. Thus, it only returns location entries that are valid and already adjusted for the base address.
Fields§
§raw: RawLocListIter<R>
§base_address: u64
§debug_addr: DebugAddr<R>
§debug_addr_base: DebugAddrBase<R::Offset>
Implementations§
source§impl<R: Reader> LocListIter<R>
impl<R: Reader> LocListIter<R>
sourcefn new(
raw: RawLocListIter<R>,
base_address: u64,
debug_addr: DebugAddr<R>,
debug_addr_base: DebugAddrBase<R::Offset>,
) -> LocListIter<R>
fn new( raw: RawLocListIter<R>, base_address: u64, debug_addr: DebugAddr<R>, debug_addr_base: DebugAddrBase<R::Offset>, ) -> LocListIter<R>
Construct a LocListIter
.
fn get_address(&self, index: DebugAddrIndex<R::Offset>) -> Result<u64>
sourcepub fn next(&mut self) -> Result<Option<LocationListEntry<R>>>
pub fn next(&mut self) -> Result<Option<LocationListEntry<R>>>
Advance the iterator to the next location.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for LocListIter<R>
impl<R> RefUnwindSafe for LocListIter<R>
impl<R> Send for LocListIter<R>
impl<R> Sync for LocListIter<R>
impl<R> Unpin for LocListIter<R>
impl<R> UnwindSafe for LocListIter<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