Struct gimli::OpcodesIter
[−]
[src]
pub struct OpcodesIter<'header, 'input, Endian> where Endian: 'header + Endianity, 'input: 'header {
// some fields omitted
}
An iterator yielding parsed opcodes.
See
LineNumberProgramHeader::opcodes
for more details.
Methods
impl<'header, 'input, Endian> OpcodesIter<'header, 'input, Endian> where Endian: 'header + Endianity, 'input: 'header
[src]
fn next_opcode(&mut self) -> ParseResult<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)
.