pub struct AddrEntryIter<R: Reader> {
input: R,
encoding: Encoding,
}Expand description
An iterator over the addresses from a .debug_addr section.
Can be used with
FallibleIterator.
Fields§
§input: R§encoding: EncodingImplementations§
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§
Auto 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> UnsafeUnpin for AddrEntryIter<R>where
R: UnsafeUnpin,
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