pub struct AddrEntryIter<R: Reader> { /* private fields */ }
Expand description
An iterator over the addresses from a .debug_addr
section.
Can be used with
FallibleIterator
.
Implementations§
Source§impl<R: Reader> AddrEntryIter<R>
impl<R: Reader> AddrEntryIter<R>
Sourcepub fn next(&mut self) -> Result<Option<u64>>
pub fn next(&mut self) -> Result<Option<u64>>
Advance the iterator and return the next address.
Returns the newly parsed address as Ok(Some(addr))
. Returns Ok(None)
when iteration is complete and all addresses have already been parsed and
yielded. If an error occurs while parsing the next address, then this error
is returned as Err(e)
, and all subsequent calls return Ok(None)
.
Trait Implementations§
Source§impl<R: Clone + Reader> Clone for AddrEntryIter<R>
impl<R: Clone + Reader> Clone for AddrEntryIter<R>
Source§fn clone(&self) -> AddrEntryIter<R>
fn clone(&self) -> AddrEntryIter<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<R> Freeze for AddrEntryIter<R>where
R: Freeze,
impl<R> RefUnwindSafe for AddrEntryIter<R>where
R: RefUnwindSafe,
impl<R> Send for AddrEntryIter<R>where
R: Send,
impl<R> Sync for AddrEntryIter<R>where
R: Sync,
impl<R> Unpin for AddrEntryIter<R>where
R: Unpin,
impl<R> UnwindSafe for AddrEntryIter<R>where
R: UnwindSafe,
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