Struct gimli::read::lookup::LookupEntryIter
source · pub struct LookupEntryIter<R, Parser>where
R: Reader,
Parser: LookupParser<R>,{
current_set: Option<(R, Parser::Header)>,
remaining_input: R,
}
Fields§
§current_set: Option<(R, Parser::Header)>
§remaining_input: R
Implementations§
source§impl<R, Parser> LookupEntryIter<R, Parser>where
R: Reader,
Parser: LookupParser<R>,
impl<R, Parser> LookupEntryIter<R, Parser>where
R: Reader,
Parser: LookupParser<R>,
sourcepub fn next(&mut self) -> Result<Option<Parser::Entry>>
pub fn next(&mut self) -> Result<Option<Parser::Entry>>
Advance the iterator and return the next entry.
Returns the newly parsed entry as Ok(Some(Parser::Entry))
. Returns
Ok(None)
when iteration is complete and all entries have already been
parsed and yielded. If an error occurs while parsing the next entry,
then this error is returned as Err(e)
, and all subsequent calls return
Ok(None)
.
Can be used with FallibleIterator
.
Trait Implementations§
source§impl<R, Parser> Clone for LookupEntryIter<R, Parser>
impl<R, Parser> Clone for LookupEntryIter<R, Parser>
source§fn clone(&self) -> LookupEntryIter<R, Parser>
fn clone(&self) -> LookupEntryIter<R, Parser>
Returns a copy 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, Parser> Freeze for LookupEntryIter<R, Parser>
impl<R, Parser> RefUnwindSafe for LookupEntryIter<R, Parser>
impl<R, Parser> Send for LookupEntryIter<R, Parser>
impl<R, Parser> Sync for LookupEntryIter<R, Parser>
impl<R, Parser> Unpin for LookupEntryIter<R, Parser>
impl<R, Parser> UnwindSafe for LookupEntryIter<R, Parser>
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