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>,

source

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>
where R: Reader + Clone, Parser: LookupParser<R> + Clone, Parser::Header: Clone,

source§

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)

Performs copy-assignment from source. Read more
source§

impl<R, Parser> Debug for LookupEntryIter<R, Parser>
where R: Reader + Debug, Parser: LookupParser<R> + Debug, Parser::Header: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<R, Parser> Freeze for LookupEntryIter<R, Parser>
where R: Freeze, <Parser as LookupParser<R>>::Header: Freeze,

§

impl<R, Parser> RefUnwindSafe for LookupEntryIter<R, Parser>
where R: RefUnwindSafe, <Parser as LookupParser<R>>::Header: RefUnwindSafe,

§

impl<R, Parser> Send for LookupEntryIter<R, Parser>
where R: Send, <Parser as LookupParser<R>>::Header: Send,

§

impl<R, Parser> Sync for LookupEntryIter<R, Parser>
where R: Sync, <Parser as LookupParser<R>>::Header: Sync,

§

impl<R, Parser> Unpin for LookupEntryIter<R, Parser>
where R: Unpin, <Parser as LookupParser<R>>::Header: Unpin,

§

impl<R, Parser> UnwindSafe for LookupEntryIter<R, Parser>
where R: UnwindSafe, <Parser as LookupParser<R>>::Header: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.