Struct gimli::OpcodesIter
[−]
[src]
pub struct OpcodesIter<'input, Endian> where
Endian: Endianity, { /* fields omitted */ }
An iterator yielding parsed opcodes.
See
LineNumberProgramHeader::opcodes
for more details.
Methods
impl<'input, Endian> OpcodesIter<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
fn next_opcode(
&mut self,
header: &LineNumberProgramHeader<'input, Endian>
) -> Result<Option<Opcode<'input>>>
&mut self,
header: &LineNumberProgramHeader<'input, Endian>
) -> Result<Option<Opcode<'input>>>
Advance the iterator and return the next opcode.
Returns the newly parsed opcode as Ok(Some(opcode))
. Returns
Ok(None)
when iteration is complete and all opcodes have already been
parsed and yielded. If an error occurs while parsing the next attribute,
then this error is returned on all subsequent calls as Err(e)
.
Unfortunately, the header
parameter means that this cannot be a
FallibleIterator
.
Trait Implementations
impl<'input, Endian: Clone> Clone for OpcodesIter<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
fn clone(&self) -> OpcodesIter<'input, Endian>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'input, Endian: Debug> Debug for OpcodesIter<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,