Struct gimli::OpcodesIter
[−]
[src]
pub struct OpcodesIter<R: Reader> { /* fields omitted */ }
An iterator yielding parsed opcodes.
See
LineNumberProgramHeader::opcodes
for more details.
Methods
impl<R: Reader> OpcodesIter<R>
[src]
fn next_opcode(
&mut self,
header: &LineNumberProgramHeader<R>
) -> Result<Option<Opcode<R>>>
&mut self,
header: &LineNumberProgramHeader<R>
) -> Result<Option<Opcode<R>>>
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 as Err(e)
, and all subsequent calls return
Ok(None)
.
Unfortunately, the header
parameter means that this cannot be a
FallibleIterator
.
Trait Implementations
impl<R: Clone + Reader> Clone for OpcodesIter<R>
[src]
fn clone(&self) -> OpcodesIter<R>
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